From 2d66919c362abb2c30b7b97ca339710943097e11 Mon Sep 17 00:00:00 2001 From: Alec Obradovich Date: Mon, 26 Nov 2018 13:00:30 -0600 Subject: [PATCH] i went home for this --- src/web/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/web/script.js b/src/web/script.js index 9fc3528..27761a2 100644 --- a/src/web/script.js +++ b/src/web/script.js @@ -35,7 +35,9 @@ function attempt_login() { )); receive_callbacks[kMasterToClient.LoginResponse] = pck => { - if(pck.regions[0][0] === 0) { + console.log(pck.regions); + + if(pck.regions[0][0] === 0x0) { error.innerHTML = "Username or password was incorrect." } else { alert("allo"); @@ -195,7 +197,7 @@ function conn_open() { }; ws.onmessage = function(e) { - parse(e.data); + parse(new Uint8Array(e.data)); }; ws.onclose = function (e) {