mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 19:21:59 +00:00
fix toasts breaking sometimes
This commit is contained in:
@@ -35,7 +35,7 @@ class Toaster extends Logger {
|
|||||||
while (true) {
|
while (true) {
|
||||||
instance = findInReactTree(
|
instance = findInReactTree(
|
||||||
(document.getElementById('root') as any)._reactRootContainer._internalRoot.current,
|
(document.getElementById('root') as any)._reactRootContainer._internalRoot.current,
|
||||||
(x) => x?.memoizedProps?.className?.startsWith('toastmanager_ToastPlaceholder'),
|
(x) => x?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPlaceholder'),
|
||||||
);
|
);
|
||||||
if (instance) break;
|
if (instance) break;
|
||||||
this.debug('finding instance');
|
this.debug('finding instance');
|
||||||
|
|||||||
Reference in New Issue
Block a user