diff options
Diffstat (limited to 'scripts/gui/chat.js')
-rw-r--r-- | scripts/gui/chat.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gui/chat.js b/scripts/gui/chat.js index 428403a..7cd1ae2 100644 --- a/scripts/gui/chat.js +++ b/scripts/gui/chat.js @@ -77,7 +77,7 @@ class Chat { this.getActiveChannel().btn.setAttribute("active", false); c.btn.setAttribute("active", true); - var ct = this.root.getElementsByClassName("chat-text")[0]; + let ct = this.root.getElementsByClassName("chat-text")[0]; ct.replaceWith(c.e); c.e.scroll({ @@ -94,7 +94,7 @@ class Chat { sendMessage () { - var str = this.chatInput.value; + let str = this.chatInput.value; if(str == "") return; this.chatInput.value = ""; @@ -110,7 +110,7 @@ class Chat { let autoscroll = c.e.scrollTop == c.e.scrollTopMax; - let csp = document.createElement("span") + let csp = document.createElement("span"); let tsp = document.createElement("span"); if(msg.server === true){ |