Skip to content

Commit 01c68ea

Browse files
committed
fix(loopyLoop): wait for webpack
1 parent b0e745b commit 01c68ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Extensions/loopyLoop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55

66
/// <reference path="../globals.d.ts" />
77

8-
(function LoopyLoop() {
8+
(async function LoopyLoop() {
99
const bar = document.querySelector(".playback-bar .progress-bar");
1010
if (!(bar && Spicetify.React)) {
1111
setTimeout(LoopyLoop, 100);
1212
return;
1313
}
14+
await new Promise((res) => Spicetify.Events.webpackLoaded.on(res));
1415

1516
const style = document.createElement("style");
1617
style.innerHTML = `

0 commit comments

Comments
 (0)