From 4cf80595ad61107a4edb2041e63983329f23ccb7 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sun, 28 Jul 2024 18:19:55 -0400 Subject: feat(toaster):add support for dismissing toasts and new indicator --- frontend/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/src/index.ts') 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); -- cgit v1.2.3