fix(webpack): wait for most chunks to load before starting

This commit is contained in:
AAGaming
2024-07-28 18:43:39 -04:00
parent e00d517119
commit 62293d2316
+3 -3
View File
@@ -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.
}