From a9125d7ba9b307b43f2e5c163ef1d024e36f516b Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 31 May 2020 14:25:49 +0200 Subject: [PATCH] Fixed logging in not working on first launch --- src/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index 861adbd..a472ff3 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -58,9 +58,10 @@ socket.on('logging_in', function () { }) socket.on('init_autologin', function () { - let arl = localStorage.getItem('arl').trim() + let arl = localStorage.getItem('arl') let accountNum = localStorage.getItem('accountNum') if (arl){ + arl = arl.trim() if (accountNum != 0){ socket.emit('login', arl, true, accountNum) }else{