mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:22:00 +00:00
fix(webpack): wait for most chunks to load before starting
This commit is contained in:
@@ -5,9 +5,9 @@ interface Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
// Wait for react to definitely be loaded
|
// Wait for main webpack chunks to definitely be loaded
|
||||||
console.debug('[Decky:Boot] Waiting for React chunk...');
|
console.debug('[Decky:Boot] Waiting for main Webpack chunks...');
|
||||||
while (!window.webpackChunksteamui || window.webpackChunksteamui <= 3) {
|
while (!window.webpackChunksteamui || window.webpackChunksteamui.length < 8) {
|
||||||
await new Promise((r) => setTimeout(r, 10)); // Can't use DFL sleep here.
|
await new Promise((r) => setTimeout(r, 10)); // Can't use DFL sleep here.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user