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 { loadRuffle } from "./load-ruffle";
|
||||||
import { ruffleShadowTemplate } from "./shadow-template";
|
import { ruffleShadowTemplate } from "./shadow-template";
|
||||||
import { lookupElement } from "./register-element";
|
import { lookupElement } from "./register-element";
|
||||||
|
import { Config } from "./config";
|
||||||
import {
|
import {
|
||||||
BaseLoadOptions,
|
BaseLoadOptions,
|
||||||
DataLoadOptions,
|
DataLoadOptions,
|
||||||
|
@ -117,6 +118,12 @@ export class RufflePlayer extends HTMLElement {
|
||||||
*/
|
*/
|
||||||
allowScriptAccess: boolean;
|
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.
|
* Constructs a new Ruffle flash player for insertion onto the page.
|
||||||
*/
|
*/
|
||||||
|
@ -434,6 +441,7 @@ export class RufflePlayer extends HTMLElement {
|
||||||
try {
|
try {
|
||||||
const config: BaseLoadOptions = {
|
const config: BaseLoadOptions = {
|
||||||
...(window.RufflePlayer?.config ?? {}),
|
...(window.RufflePlayer?.config ?? {}),
|
||||||
|
...this.config,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue