web: Make sure player config takes priority over global config
This commit is contained in:
parent
799c0955b3
commit
cc81122fd8
|
@ -324,8 +324,8 @@ export class RufflePlayer extends HTMLElement {
|
|||
}
|
||||
|
||||
const config = {
|
||||
...this.config,
|
||||
...(window.RufflePlayer?.config ?? {}),
|
||||
...this.config,
|
||||
};
|
||||
const autoplay = config.autoplay ?? AutoPlay.Off;
|
||||
const unmuteVisibility = config.unmuteOverlay ?? UnmuteOverlay.Visible;
|
||||
|
|
Loading…
Reference in New Issue