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);
|
||||
} else if (connexionType === GameConnexionTypes.privateAccessToken) {
|
||||
const organizationMemberToken = urlManager.getPrivateAccessToken;
|
||||
const organizationMemberToken = urlManager.privateAccessToken;
|
||||
|
||||
//clear queryPrivateAccessToken query in window location
|
||||
urlParams.delete(queryPrivateAccessToken);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user