From 4b23a800f6d3391720321604b30e3e80e708ea4d Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 26 Jul 2024 14:29:25 -0400 Subject: fix(toaster): fixup for latest @decky/ui --- frontend/src/toaster.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend/src') diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx index 6f7c5f6e..4bc08772 100644 --- a/frontend/src/toaster.tsx +++ b/frontend/src/toaster.tsx @@ -3,7 +3,7 @@ import { Export, Patch, afterPatch, - findClass, + findClassByName, findInReactTree, findModuleExport, getReactRoot, @@ -49,10 +49,10 @@ class Toaster extends Logger { // )); let instance: any; const tree = getReactRoot(document.getElementById('root') as any); - const toasterClass1 = findClass('GamepadToastPlaceholder'); - const toasterClass2 = findClass('ToastPlaceholder'); - const toasterClass3 = findClass('ToastPopup'); - const toasterClass4 = findClass('GamepadToastPopup'); + const toasterClass1 = findClassByName('GamepadToastPlaceholder'); + const toasterClass2 = findClassByName('ToastPlaceholder'); + const toasterClass3 = findClassByName('ToastPopup'); + const toasterClass4 = findClassByName('GamepadToastPopup'); const findToasterRoot = (currentNode: any, iters: number): any => { if (iters >= 80) { // currently 66 -- cgit v1.2.3