mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 17:12:01 +00:00
fix(toaster): fixup for latest @decky/ui
This commit is contained in:
@@ -3,7 +3,7 @@ import {
|
|||||||
Export,
|
Export,
|
||||||
Patch,
|
Patch,
|
||||||
afterPatch,
|
afterPatch,
|
||||||
findClass,
|
findClassByName,
|
||||||
findInReactTree,
|
findInReactTree,
|
||||||
findModuleExport,
|
findModuleExport,
|
||||||
getReactRoot,
|
getReactRoot,
|
||||||
@@ -49,10 +49,10 @@ class Toaster extends Logger {
|
|||||||
// ));
|
// ));
|
||||||
let instance: any;
|
let instance: any;
|
||||||
const tree = getReactRoot(document.getElementById('root') as any);
|
const tree = getReactRoot(document.getElementById('root') as any);
|
||||||
const toasterClass1 = findClass('GamepadToastPlaceholder');
|
const toasterClass1 = findClassByName('GamepadToastPlaceholder');
|
||||||
const toasterClass2 = findClass('ToastPlaceholder');
|
const toasterClass2 = findClassByName('ToastPlaceholder');
|
||||||
const toasterClass3 = findClass('ToastPopup');
|
const toasterClass3 = findClassByName('ToastPopup');
|
||||||
const toasterClass4 = findClass('GamepadToastPopup');
|
const toasterClass4 = findClassByName('GamepadToastPopup');
|
||||||
const findToasterRoot = (currentNode: any, iters: number): any => {
|
const findToasterRoot = (currentNode: any, iters: number): any => {
|
||||||
if (iters >= 80) {
|
if (iters >= 80) {
|
||||||
// currently 66
|
// currently 66
|
||||||
|
|||||||
Reference in New Issue
Block a user