aboutsummaryrefslogtreecommitdiff
path: root/src/webpack/common
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-04 21:51:03 +0200
committerVendicated <vendicated@riseup.net>2023-04-04 21:51:03 +0200
commit368cb7bc6bc2d066b3ebb180d854d44697e8fa2d (patch)
tree81862d98670fc8e555b4f3ef69eece51dbfee9a3 /src/webpack/common
parent4aa7a052d0da6f76d69758821cccacdbd173a428 (diff)
downloadVencord-368cb7bc6bc2d066b3ebb180d854d44697e8fa2d.tar.gz
Vencord-368cb7bc6bc2d066b3ebb180d854d44697e8fa2d.tar.bz2
Vencord-368cb7bc6bc2d066b3ebb180d854d44697e8fa2d.zip
Fix Toasts
Diffstat (limited to 'src/webpack/common')
-rw-r--r--src/webpack/common/utils.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts
index 083e8d7..2c2af54 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);