diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index b05b36e6..39f94677 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -48,7 +48,7 @@ class ConnectionManager { } let roomId: string if (connexionType === GameConnexionTypes.empty) { - var defaultMapUrl = window.location.host.replace('play.', 'maps.') + URL_ROOM_STARTED; + let defaultMapUrl = window.location.host.replace('play.', 'maps.') + URL_ROOM_STARTED; if (URL_ROOM_STARTED.startsWith('http://') || URL_ROOM_STARTED.startsWith('https://')) { defaultMapUrl = URL_ROOM_STARTED.replace('http://', '').replace('https://', ''); }