just sleep 500ms for now to work around startup race condition

This commit is contained in:
AAGaming
2024-09-11 21:50:48 -04:00
parent c487a6e15a
commit caac379b08
+1
View File
@@ -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);