[Bugfix] Toaster changed name again (#581)

Add another name placeholder for getting the toaster out of the HTML tree. Thanks to @eXhumer for the fix.
This commit is contained in:
Marco Rodolfi
2024-01-25 17:21:11 +01:00
committed by GitHub
parent 9295e4b038
commit 3146ebf85f
+2 -1
View File
@@ -56,7 +56,8 @@ class Toaster extends Logger {
if (
currentNode?.memoizedProps?.className?.startsWith?.('gamepadtoasts_GamepadToastPlaceholder') ||
currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPlaceholder') ||
currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPopup')
currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPopup') ||
currentNode?.memoizedProps?.className?.startsWith?.('gamepadtoasts_GamepadToastPopup')
) {
this.log(`Toaster root was found in ${iters} recursion cycles`);
return currentNode;