Skip to content

Commit 93c5bfd

Browse files
authored
that was supposed to be a removeEventListener
1 parent 36e50bd commit 93c5bfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/installButton/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export function onUnload() {
345345

346346
DefaultRouteStore.defaultRoute = "/channels/@me";
347347

348-
navigation.addEventListener("navigate", handleNavigate);
348+
navigation.removeEventListener("navigate", handleNavigate);
349349

350350
for (const element of document.querySelectorAll("[data-instbtn]")) {
351351
element.removeAttribute("data-instbtn");

0 commit comments

Comments
 (0)