web: Revert config removal
This commit is contained in:
parent
5827801b03
commit
b07eb07afb
|
@ -3,6 +3,7 @@ import { Ruffle } from "../pkg/ruffle_web";
|
|||
import { loadRuffle } from "./load-ruffle";
|
||||
import { ruffleShadowTemplate } from "./shadow-template";
|
||||
import { lookupElement } from "./register-element";
|
||||
import { Config } from "./config";
|
||||
import {
|
||||
BaseLoadOptions,
|
||||
DataLoadOptions,
|
||||
|
@ -117,6 +118,12 @@ export class RufflePlayer extends HTMLElement {
|
|||
*/
|
||||
allowScriptAccess: boolean;
|
||||
|
||||
/**
|
||||
* Any configuration that should apply to this specific player.
|
||||
* This will be defaulted with any global configuration.
|
||||
*/
|
||||
config: Config = {};
|
||||
|
||||
/**
|
||||
* Constructs a new Ruffle flash player for insertion onto the page.
|
||||
*/
|
||||
|
@ -434,6 +441,7 @@ export class RufflePlayer extends HTMLElement {
|
|||
try {
|
||||
const config: BaseLoadOptions = {
|
||||
...(window.RufflePlayer?.config ?? {}),
|
||||
...this.config,
|
||||
...options,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue