move webpack check into index

This commit is contained in:
AAGaming
2024-06-27 00:07:38 -04:00
parent 13a38d82fd
commit dcff7d146b
2 changed files with 6 additions and 1 deletions

View File

@@ -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