From 0e7a52aa58d009fd30d455fc0f4ee5e9e9c9269c Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Thu, 17 Mar 2022 10:38:52 +0100 Subject: [PATCH] update with dan suggest Signed-off-by: Gregoire Parant --- front/src/Connexion/ConnectionManager.ts | 2 +- front/src/Url/UrlManager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index 422f6546..c8c67b77 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -129,7 +129,7 @@ class ConnectionManager { } urlManager.pushRoomIdToUrl(this._currentRoom); } else if (connexionType === GameConnexionTypes.privateAccessToken) { - const organizationMemberToken = urlManager.getPrivateAccessToken; + const organizationMemberToken = urlManager.privateAccessToken; //clear queryPrivateAccessToken query in window location urlParams.delete(queryPrivateAccessToken); diff --git a/front/src/Url/UrlManager.ts b/front/src/Url/UrlManager.ts index f1283f70..5ab6ba21 100644 --- a/front/src/Url/UrlManager.ts +++ b/front/src/Url/UrlManager.ts @@ -40,7 +40,7 @@ class UrlManager { /** * @return string */ - get getPrivateAccessToken(): string | null { + get privateAccessToken(): string | null { const urlParams = new URLSearchParams(window.location.search.toString()); return urlParams.get(queryPrivateAccessToken); }