mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-15 18:13:40 +03:00
move webpack check into index
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user