diff options
| author | AAGaming <aagaming@riseup.net> | 2024-09-11 21:50:48 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-09-11 21:50:48 -0400 |
| commit | caac379b08728f7a739971fb7046cfe91a91ad6c (patch) | |
| tree | 7c4248597d5642d7609fe5808792703344091d5c /frontend | |
| parent | c487a6e15ab86f846a99b25186dbfbd24d5c3f36 (diff) | |
| download | decky-loader-caac379b08728f7a739971fb7046cfe91a91ad6c.tar.gz decky-loader-caac379b08728f7a739971fb7046cfe91a91ad6c.zip | |
just sleep 500ms for now to work around startup race conditionv3.0.0-pre14
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/src/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
