diff options
| author | AAGaming <aagaming@riseup.net> | 2026-11-21 21:14:41 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-11-21 21:14:41 -0500 |
| commit | 02db20f846857374b9b5f1e7dbd475befdf47b71 (patch) | |
| tree | 55c7553d32ffb55e3f490d153543fb96ed9bb71a /frontend/src/toaster.tsx | |
| parent | ffd103b9c1a4ce5bf305e7c0998eda6e05457dad (diff) | |
| download | decky-loader-02db20f846857374b9b5f1e7dbd475befdf47b71.tar.gz decky-loader-02db20f846857374b9b5f1e7dbd475befdf47b71.zip | |
esmodule support base
Diffstat (limited to 'frontend/src/toaster.tsx')
| -rw-r--r-- | frontend/src/toaster.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx index e5b2d986..572a1bba 100644 --- a/frontend/src/toaster.tsx +++ b/frontend/src/toaster.tsx @@ -4,7 +4,7 @@ import { ErrorBoundary, Patch, callOriginal, - findModuleExport, + findVar, injectFCTrampoline, replacePatch, } from '@decky/ui'; @@ -27,7 +27,8 @@ class Toaster extends Logger { window.__TOASTER_INSTANCE?.deinit?.(); window.__TOASTER_INSTANCE = this; - const ValveToastRenderer = findModuleExport((e) => e?.toString?.()?.includes(`controller:"notification",method:`)); + // TODO regex? + const ValveToastRenderer = findVar((e) => 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[]) => { |
