summaryrefslogtreecommitdiff
path: root/frontend/src/index.ts
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-07-28 18:19:55 -0400
committerAAGaming <aagaming@riseup.net>2024-08-03 14:04:20 -0400
commit4cf80595ad61107a4edb2041e63983329f23ccb7 (patch)
treef6353008999c12f0ee49e3647a54c47275c79c73 /frontend/src/index.ts
parent4c23549748e71c061ea2fc1f8fa9262f15018cfc (diff)
downloaddecky-loader-4cf80595ad61107a4edb2041e63983329f23ccb7.tar.gz
decky-loader-4cf80595ad61107a4edb2041e63983329f23ccb7.zip
feat(toaster):add support for dismissing toasts and new indicator
Diffstat (limited to 'frontend/src/index.ts')
-rw-r--r--frontend/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/index.ts b/frontend/src/index.ts
index 4ea22318..c962375b 100644
--- a/frontend/src/index.ts
+++ b/frontend/src/index.ts
@@ -6,12 +6,13 @@ interface Window {
(async () => {
// Wait for react to definitely be loaded
+ console.debug('[Decky:Boot] Waiting for React chunk...');
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...');
+ console.debug('[Decky:Boot] Setting up Webpack & React globals...');
// deliberate partial import
const DFLWebpack = await import('@decky/ui/dist/webpack');
window.SP_REACT = DFLWebpack.findModule((m) => m.Component && m.PureComponent && m.useLayoutEffect);