From b849dd77424f1937607ef851bbde0658c46c8228 Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Wed, 14 Jul 2021 11:55:59 +0200 Subject: [PATCH] Update network.js --- client/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/network.js b/client/scripts/network.js index 2274343..592053b 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -58,7 +58,7 @@ class ServerConnection { // hack to detect if deployment or development environment const protocol = location.protocol.startsWith('https') ? 'wss' : 'ws'; const webrtc = window.isRtcSupported ? '/webrtc' : '/fallback'; - const url = protocol + '://' + location.host + location.pathname + '/server' + webrtc; + const url = protocol + '://' + location.host + location.pathname + 'server' + webrtc; return url; }