From 62293d23165d43b93f1b14a748286d9fb389522b Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sun, 28 Jul 2024 18:43:39 -0400 Subject: fix(webpack): wait for most chunks to load before starting --- frontend/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/index.ts b/frontend/src/index.ts index c962375b..7910c740 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -5,9 +5,9 @@ interface Window { } (async () => { - // Wait for react to definitely be loaded - console.debug('[Decky:Boot] Waiting for React chunk...'); - while (!window.webpackChunksteamui || window.webpackChunksteamui <= 3) { + // Wait for main webpack chunks to definitely be loaded + console.debug('[Decky:Boot] Waiting for main Webpack chunks...'); + while (!window.webpackChunksteamui || window.webpackChunksteamui.length < 8) { await new Promise((r) => setTimeout(r, 10)); // Can't use DFL sleep here. } -- cgit v1.2.3