Skip to content

Commit d3fd770

Browse files
aveladTAhub
andauthored
fix(Demo): Fix keep custom config on page reload (#8776)
Co-authored-by: Theodore Abshire <[email protected]>
1 parent cb22ab6 commit d3fd770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demo/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,9 @@ shakaDemo.Main = class {
15571557
manifestUri && !manifestUri.startsWith('offline:')) {
15581558
mimeType = asset.mimeType;
15591559
}
1560-
const itemConfig = this.defaultConfig_;
1560+
const itemConfig = /** @type {shaka.extern.PlayerConfiguration} */(
1561+
Object.assign({}, this.defaultConfig_)
1562+
);
15611563
const assetConfig = asset.getConfiguration();
15621564
shaka.util.PlayerConfiguration.mergeConfigObjects(
15631565
itemConfig, this.desiredConfig_, itemConfig);

0 commit comments

Comments
 (0)