mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 23:47:25 +00:00
Import muxjs only once and asynchronously.
This commit is contained in:
parent
87ae10d6f5
commit
b5b238656b
@ -12,8 +12,11 @@
|
||||
<script>
|
||||
import("shaka-player/dist/controls.css");
|
||||
const shaka = import("shaka-player/dist/shaka-player.ui.js");
|
||||
import muxjs from "mux.js";
|
||||
window.muxjs = muxjs;
|
||||
if (!window.muxjs) {
|
||||
import("mux.js").then(muxjs => {
|
||||
window.muxjs = muxjs;
|
||||
});
|
||||
}
|
||||
const hotkeys = import("hotkeys-js");
|
||||
|
||||
export default {
|
||||
|
Loading…
Reference in New Issue
Block a user