fix another toString

This commit is contained in:
AAGaming
2024-10-11 14:58:05 -04:00
parent 43aa0497f4
commit 4f05a001fb
+1 -1
View File
@@ -28,7 +28,7 @@ class Toaster extends Logger {
window.__TOASTER_INSTANCE?.deinit?.(); window.__TOASTER_INSTANCE?.deinit?.();
window.__TOASTER_INSTANCE = this; window.__TOASTER_INSTANCE = this;
const ValveToastRenderer = findModuleExport((e) => e?.toString()?.includes(`controller:"notification",method:`)); const ValveToastRenderer = findModuleExport((e) => e?.toString?.()?.includes(`controller:"notification",method:`));
// TODO find a way to undo this if possible? // TODO find a way to undo this if possible?
const patchedRenderer = injectFCTrampoline(ValveToastRenderer); const patchedRenderer = injectFCTrampoline(ValveToastRenderer);
this.toastPatch = replacePatch(patchedRenderer, 'component', (args: any[]) => { this.toastPatch = replacePatch(patchedRenderer, 'component', (args: any[]) => {