summaryrefslogtreecommitdiff
path: root/scripts/client.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-10-17 13:28:45 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-10-17 13:28:45 -0400
commitfb231e3c6f3afbd40de5a94187221b788656cb5c (patch)
treef8215ebbc4a63a7a1850e1d24d12f3fa04d591bf /scripts/client.js
parentc4cd3f3b7aeedef5399a296cdf34a7e471372a51 (diff)
[HOTFIX] "chat" variable in client
Diffstat (limited to 'scripts/client.js')
-rw-r--r--scripts/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/client.js b/scripts/client.js
index 1e7bacc..21b3157 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -50,7 +50,7 @@ class Client{
this.socket.addEventListener("handshake", this.handshake.bind(this));
this.socket.addEventListener("menu", this.menu.bind(this));
this.socket.addEventListener("game", this.game.bind(this));
- this.socket.addEventListener("chat", this.chat.bind(this));
+ this.socket.addEventListener("chat", this.msg.bind(this));
this.lobby = new Lobby(document.getElementsByClassName("lobby")[0], this.socket);
@@ -142,7 +142,7 @@ class Client{
}
// Callback when a chat event is recieved from the server
- chat (e)
+ msg (e)
{
let m = e.detail;
this.chat[m.type](m.data);