i went home for this
This commit is contained in:
parent
786fbfd79f
commit
2d66919c36
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,9 @@ function attempt_login() {
|
||||||
));
|
));
|
||||||
|
|
||||||
receive_callbacks[kMasterToClient.LoginResponse] = pck => {
|
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."
|
error.innerHTML = "Username or password was incorrect."
|
||||||
} else {
|
} else {
|
||||||
alert("allo");
|
alert("allo");
|
||||||
|
@ -195,7 +197,7 @@ function conn_open() {
|
||||||
};
|
};
|
||||||
|
|
||||||
ws.onmessage = function(e) {
|
ws.onmessage = function(e) {
|
||||||
parse(e.data);
|
parse(new Uint8Array(e.data));
|
||||||
};
|
};
|
||||||
|
|
||||||
ws.onclose = function (e) {
|
ws.onclose = function (e) {
|
||||||
|
|
Loading…
Reference in a new issue