From 952d9d3fca3fd9084a63f62a6feba322448f53c6 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 7 Jan 2021 12:48:31 +0100 Subject: [PATCH] Repalced var by let --- front/src/Connexion/ConnectionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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://', ''); }