diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-10-17 13:28:45 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-10-17 13:28:45 -0400 |
commit | fb231e3c6f3afbd40de5a94187221b788656cb5c (patch) | |
tree | f8215ebbc4a63a7a1850e1d24d12f3fa04d591bf /scripts/gui/chat.js | |
parent | c4cd3f3b7aeedef5399a296cdf34a7e471372a51 (diff) |
[HOTFIX] "chat" variable in client
Diffstat (limited to 'scripts/gui/chat.js')
-rw-r--r-- | scripts/gui/chat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gui/chat.js b/scripts/gui/chat.js index b412694..4bd6933 100644 --- a/scripts/gui/chat.js +++ b/scripts/gui/chat.js @@ -10,8 +10,8 @@ class Chat { let cin = e.getElementsByClassName("chat-input")[0]; this.chatInput = cin.children[0]; - cin.children[0].addEventListener("keydown", this.checkEnter.bind(this)); - cin.children[1].addEventListener("click", this.sendMessage.bind(this)); + cin.getElementsByTagName("input")[0].addEventListener("keydown", this.checkEnter.bind(this)); + cin.getElementsByTagName("button")[0].addEventListener("click", this.sendMessage.bind(this)); } getChannel (name) |