snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit b849dd77424f1937607ef851bbde0658c46c8228
parent 0aa27250a4c37a56d3999636244311f4b63df803
Author: RobinLinus <RobinLinus@users.noreply.github.com>
Date:   Wed, 14 Jul 2021 11:55:59 +0200

Update network.js
Diffstat:
Mclient/scripts/network.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }