Add test mode
`*` char permit to defined test mode with warning message Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
27aa3c51d3
commit
a5d4d163e1
5 changed files with 24 additions and 4 deletions
|
@ -8,9 +8,10 @@ import { CharacterTexture, LocalUser } from "./LocalUser";
|
|||
import { Room } from "./Room";
|
||||
import { _ServiceWorker } from "../Network/ServiceWorker";
|
||||
import { loginSceneVisibleIframeStore } from "../Stores/LoginSceneStore";
|
||||
import { userIsConnected } from "../Stores/MenuStore";
|
||||
import { userIsConnected, warningContainerStore } from "../Stores/MenuStore";
|
||||
import { analyticsClient } from "../Administration/AnalyticsClient";
|
||||
import { axiosWithRetry } from "./AxiosUtils";
|
||||
import { limitMap } from "../Stores/GameStore";
|
||||
|
||||
class ConnectionManager {
|
||||
private localUser!: LocalUser;
|
||||
|
@ -148,6 +149,7 @@ class ConnectionManager {
|
|||
} else if (
|
||||
connexionType === GameConnexionTypes.organization ||
|
||||
connexionType === GameConnexionTypes.anonymous ||
|
||||
connexionType === GameConnexionTypes.limit ||
|
||||
connexionType === GameConnexionTypes.empty
|
||||
) {
|
||||
this.authToken = localUserStore.getAuthToken();
|
||||
|
@ -228,6 +230,12 @@ class ConnectionManager {
|
|||
analyticsClient.identifyUser(this.localUser.uuid, this.localUser.email);
|
||||
}
|
||||
|
||||
//if limit room active test headband
|
||||
if (connexionType === GameConnexionTypes.limit) {
|
||||
warningContainerStore.activateWarningContainer();
|
||||
limitMap.set(true);
|
||||
}
|
||||
|
||||
this.serviceWorker = new _ServiceWorker();
|
||||
return Promise.resolve(this._currentRoom);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue