From 368cb7bc6bc2d066b3ebb180d854d44697e8fa2d Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 4 Apr 2023 21:51:03 +0200 Subject: [PATCH] Fix Toasts --- src/webpack/common/utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 083e8d739..2c2af54c9 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -103,8 +103,10 @@ waitFor(["dispatch", "subscribe"], m => { // This is the same module but this is easier -waitFor(filters.byCode("currentToast?"), m => Toasts.show = m); -waitFor(filters.byCode("currentToast:null"), m => Toasts.pop = m); +waitFor("showToast", m => { + Toasts.show = m.showToast; + Toasts.pop = m.popToast; +}); waitFor(["show", "close"], m => Alerts = m); waitFor("parseTopic", m => Parser = m);