diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-04 21:51:03 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-04 21:51:03 +0200 |
commit | 368cb7bc6bc2d066b3ebb180d854d44697e8fa2d (patch) | |
tree | 81862d98670fc8e555b4f3ef69eece51dbfee9a3 | |
parent | 4aa7a052d0da6f76d69758821cccacdbd173a428 (diff) | |
download | Vencord-368cb7bc6bc2d066b3ebb180d854d44697e8fa2d.tar.gz Vencord-368cb7bc6bc2d066b3ebb180d854d44697e8fa2d.tar.bz2 Vencord-368cb7bc6bc2d066b3ebb180d854d44697e8fa2d.zip |
Fix Toasts
-rw-r--r-- | src/webpack/common/utils.ts | 6 |
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); |