fix: de golmon

This commit is contained in:
starnakin 2023-11-27 19:16:30 +01:00
parent 25721bdda8
commit b5b54a98ba

View File

@ -5,7 +5,7 @@ function extract_token(response)
let cookies = response.headers.get("set-cookie");
if (cookies == null)
return null;
token = cookies.slice(cookies.indexOf("=") + 1, cookies.indexOf(';'))
let token = cookies.slice(cookies.indexOf("=") + 1, cookies.indexOf(';'))
return token;
}
@ -18,7 +18,7 @@ class Client
this._token = undefined;
}
get isAuthentificate()
isAuthentificate()
{
return this.token != undefined;
}