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);