summaryrefslogtreecommitdiff
path: root/scripts/client.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-25 21:10:40 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-25 21:10:40 -0400
commit380bfaeeeadbd7c3d6d0ee79551fedb35d597d8c (patch)
treeccf403f824f648e0b4f5e71ce5de546cce4ac3bd /scripts/client.js
parent7abeb4a35a0105b94e599de9970404c98790b4d9 (diff)
Fix a bug with the handshake
Diffstat (limited to 'scripts/client.js')
-rw-r--r--scripts/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/client.js b/scripts/client.js
index 4d27bc5..c243d9f 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -94,8 +94,7 @@ class Client{
// Callback when negotiating with the server for the first time and we are determining versions
handshake (e)
{
- let m = e.detail;
- switch (m.type) {
+ switch (e.detail) {
case "verr":
this.socket.close();