summaryrefslogtreecommitdiff
path: root/frontend/src/toaster.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/toaster.tsx')
-rw-r--r--frontend/src/toaster.tsx10
1 files changed, 5 insertions, 5 deletions
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