From 5cee0d43569f04390e0f88a0a910448cfe43b86e Mon Sep 17 00:00:00 2001 From: ririxi Date: Sun, 25 Aug 2024 14:55:20 +0200 Subject: [PATCH] fix(wrapper/webpack): do not return while webpack is loading --- jsHelper/spicetifyWrapper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jsHelper/spicetifyWrapper.js b/jsHelper/spicetifyWrapper.js index f8df3ff4b5..89b90c5d0c 100644 --- a/jsHelper/spicetifyWrapper.js +++ b/jsHelper/spicetifyWrapper.js @@ -447,9 +447,8 @@ window.Spicetify = { })(); (async function hotloadWebpackModules() { - if (!window?.webpackChunkclient_web) { + while (!window?.webpackChunkclient_web) { await new Promise((r) => setTimeout(r, 50)); - return; } // Force all webpack modules to load