diff options
Diffstat (limited to 'frontend/src/index.ts')
| -rw-r--r-- | frontend/src/index.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 1d151dd8..1039fb23 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -5,6 +5,11 @@ interface Window { } (async () => { + // Wait for react to definitely be loaded + while (!window.webpackChunksteamui || window.webpackChunksteamui <= 3) { + await new Promise(r => setTimeout(r, 10)); // Can't use DFL sleep here. + } + if (!window.SP_REACT) { console.debug('[Decky:Boot] Setting up React globals...'); // deliberate partial import |
