Fixed logging in not working on first launch

This commit is contained in:
RemixDev 2020-05-31 14:25:49 +02:00
parent b99d158085
commit a9125d7ba9

View File

@ -58,9 +58,10 @@ socket.on('logging_in', function () {
}) })
socket.on('init_autologin', function () { socket.on('init_autologin', function () {
let arl = localStorage.getItem('arl').trim() let arl = localStorage.getItem('arl')
let accountNum = localStorage.getItem('accountNum') let accountNum = localStorage.getItem('accountNum')
if (arl){ if (arl){
arl = arl.trim()
if (accountNum != 0){ if (accountNum != 0){
socket.emit('login', arl, true, accountNum) socket.emit('login', arl, true, accountNum)
}else{ }else{