From b5b54a98ba4afaf385a82660245dbbd2b53882ef Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 27 Nov 2023 19:16:30 +0100 Subject: [PATCH] fix: de golmon --- frontend/static/js/api/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/static/js/api/client.js b/frontend/static/js/api/client.js index 8d2c10e..a66fd59 100644 --- a/frontend/static/js/api/client.js +++ b/frontend/static/js/api/client.js @@ -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; }