mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Store ui in window.
This commit is contained in:
parent
5e6b41f8bf
commit
4b1b71d452
1 changed files with 4 additions and 4 deletions
|
@ -88,8 +88,8 @@ export default {
|
||||||
});
|
});
|
||||||
if (localStorage) videoEl.volume = localStorage.getItem("volume") || 1;
|
if (localStorage) videoEl.volume = localStorage.getItem("volume") || 1;
|
||||||
|
|
||||||
if (!this.ui) {
|
if (!window.ui) {
|
||||||
this.ui = new shaka.ui.Overlay(
|
window.ui = new shaka.ui.Overlay(
|
||||||
player,
|
player,
|
||||||
document.querySelector("div[data-shaka-player-container]"),
|
document.querySelector("div[data-shaka-player-container]"),
|
||||||
videoEl,
|
videoEl,
|
||||||
|
@ -104,7 +104,7 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
this.ui.configure(config);
|
window.ui.configure(config);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -113,7 +113,7 @@ export default {
|
||||||
if (this.player) {
|
if (this.player) {
|
||||||
this.player.destroy();
|
this.player.destroy();
|
||||||
this.player = undefined;
|
this.player = undefined;
|
||||||
this.ui = undefined;
|
window.ui = undefined;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue