Repalced var by let

This commit is contained in:
Thomas Basler 2021-01-07 12:48:31 +01:00
parent f6c7c466eb
commit 952d9d3fca
1 changed files with 1 additions and 1 deletions

View File

@ -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://', '');
}