update with dan suggest
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
5448596f01
commit
0e7a52aa58
@ -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);
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user