web: Make sure player config takes priority over global config

This commit is contained in:
Nathan Adams 2020-11-20 11:10:45 +01:00 committed by Mike Welsh
parent 799c0955b3
commit cc81122fd8
1 changed files with 1 additions and 1 deletions

View File

@ -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;