Fix Toasts

This commit is contained in:
Vendicated 2023-04-04 21:51:03 +02:00
parent 4aa7a052d0
commit 368cb7bc6b
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

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