fix login
This commit is contained in:
parent
a653b02b35
commit
a45cc28d80
2 changed files with 5 additions and 2 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "gw-master",
|
||||
"name": "gridwar",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
@ -68,6 +68,10 @@ let amounts = {
|
|||
let areas = {};
|
||||
|
||||
function doubleClick(e) {
|
||||
if (!token) {
|
||||
window.location.href = 'https://nbg.dervland.net/login.php?next=' + encodeURIComponent(window.location.href);
|
||||
}
|
||||
|
||||
let data = e.target.id.split('|').pop();
|
||||
|
||||
data = data.split('_');
|
||||
|
@ -209,7 +213,6 @@ var token = getCookie('token');
|
|||
var noauth = false;
|
||||
|
||||
setTimeout(() => {
|
||||
if (!token) window.location.href = 'https://nbg.dervland.net/login.php?next=' + encodeURIComponent(window.location.href);
|
||||
if (token && window.location.search != '') window.location.href = '/';
|
||||
|
||||
socket.emit('join', { token });
|
||||
|
|
Loading…
Reference in a new issue