From caac379b08728f7a739971fb7046cfe91a91ad6c Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 11 Sep 2024 21:50:48 -0400 Subject: just sleep 500ms for now to work around startup race condition --- frontend/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 4a5fc7f8..8d67f175 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -27,6 +27,7 @@ interface Window { if (!window.SP_REACT) { console.debug('[Decky:Boot] Setting up Webpack & React globals...'); + await new Promise((r) => setTimeout(r, 500)); // Can't use DFL sleep here. // deliberate partial import const DFLWebpack = await import('@decky/ui/dist/webpack'); window.SP_REACT = DFLWebpack.findModule((m) => m.Component && m.PureComponent && m.useLayoutEffect); -- cgit v1.2.3