Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit 72a8296

Browse files
committed
fixes #291
the event handlers are bound to the body, not the root-element of the script
1 parent 3dd7626 commit 72a8296

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/mods/chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ idrinth.chat = {
10671067
idrinth.ui.buildChat ( chatId, list[chatId].name, list[chatId].access, list[chatId].pass );
10681068
}
10691069
}
1070-
idrinth.core.timeouts.add ( 'chat', idrinth.chat.refreshChats, 1500 );
1070+
idrinth.core.timeouts.add ( 'chat', idrinth.chat.refreshChats, 500 );
10711071
},
10721072
/**
10731073
*

src/stable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var idrinth = {
2020
window.clearTimeout ( idrinth.core.timeouts.next );
2121
idrinth.ui.removeElement ( 'idotd-base' );
2222
for (var event in idrinth.core.multibind.events) {
23-
idrinth.ui.base.removeEventListener ( event, idrinth.core.multibind.triggered );
23+
document.getElementsByTagName ( 'body' )[0].removeEventListener ( event, idrinth.core.multibind.triggered );
2424
}
2525
for (var observer in idrinth.observer.list) {
2626
idrinth.observer.list[observer].disconnect();

0 commit comments

Comments
 (0)