mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 12:15:09 +03:00
fix(webpack): wait for most chunks to load before starting
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user