Fix QAM And Toaster Injection for Mar 02 Beta (#388)

This commit is contained in:
Beebles
2023-03-01 21:20:31 -07:00
committed by GitHub
parent 88e1e9b869
commit 46abc5a266
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class TabsHook extends Logger {
const tree = (document.getElementById('root') as any)._reactRootContainer._internalRoot.current;
let qAMRoot: any;
const findQAMRoot = (currentNode: any, iters: number): any => {
if (iters >= 55) {
if (iters >= 65) {
// currently 45
return null;
}
+1
View File
@@ -45,6 +45,7 @@ class Toaster extends Logger {
return null;
}
if (
currentNode?.memoizedProps?.className?.startsWith?.('gamepadtoasts_GamepadToastPlaceholder') ||
currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPlaceholder') ||
currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPopup')
) {