update with dan suggest

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant 2022-03-17 10:38:52 +01:00
parent 5448596f01
commit 0e7a52aa58
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class ConnectionManager {
} }
urlManager.pushRoomIdToUrl(this._currentRoom); urlManager.pushRoomIdToUrl(this._currentRoom);
} else if (connexionType === GameConnexionTypes.privateAccessToken) { } else if (connexionType === GameConnexionTypes.privateAccessToken) {
const organizationMemberToken = urlManager.getPrivateAccessToken; const organizationMemberToken = urlManager.privateAccessToken;
//clear queryPrivateAccessToken query in window location //clear queryPrivateAccessToken query in window location
urlParams.delete(queryPrivateAccessToken); urlParams.delete(queryPrivateAccessToken);

View File

@ -40,7 +40,7 @@ class UrlManager {
/** /**
* @return string * @return string
*/ */
get getPrivateAccessToken(): string | null { get privateAccessToken(): string | null {
const urlParams = new URLSearchParams(window.location.search.toString()); const urlParams = new URLSearchParams(window.location.search.toString());
return urlParams.get(queryPrivateAccessToken); return urlParams.get(queryPrivateAccessToken);
} }