summaryrefslogtreecommitdiff
path: root/frontend/src/hooks/toaster.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-11-21 21:57:39 -0500
committerAAGaming <aagaming@riseup.net>2026-11-21 21:57:39 -0500
commit7b68170549be09152378bec340ee478a0509231c (patch)
tree032faa7d400281138a522384ae9e48836aaae575 /frontend/src/hooks/toaster.tsx
parenta2bdcbeb01eb7bf315fb0d89e919934a927921ab (diff)
downloaddecky-loader-7b68170549be09152378bec340ee478a0509231c.tar.gz
decky-loader-7b68170549be09152378bec340ee478a0509231c.zip
small cleanups
Diffstat (limited to 'frontend/src/hooks/toaster.tsx')
-rw-r--r--frontend/src/hooks/toaster.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/hooks/toaster.tsx b/frontend/src/hooks/toaster.tsx
index d7f76272..cc604d0f 100644
--- a/frontend/src/hooks/toaster.tsx
+++ b/frontend/src/hooks/toaster.tsx
@@ -28,7 +28,9 @@ class Toaster extends Logger {
window.__TOASTER_INSTANCE = this;
// TODO regex?
- const ValveToastRenderer = findVar((e) => e?.toString?.()?.includes(`controller:\`notification\`,method:`));
+ const ValveToastRenderer = findVar(
+ (e) => typeof e == 'function' && e?.toString?.()?.includes(`controller:\`notification\`,method:`),
+ );
// TODO find a way to undo this if possible?
const patchedRenderer = injectFCTrampoline(ValveToastRenderer);
this.toastPatch = replacePatch(patchedRenderer, 'component', (args: any[]) => {