snapdrop

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

commit 95921ee723d77d3e262dfabcd93c57bd8bb9b36e
parent fad4632eb903ea6de9ecbec90df0ac6bd7410e68
Author: deftdawg <deftdawg@gmail.com>
Date:   Wed,  7 Apr 2021 15:32:46 -0400

Merge pull request #1 from deftdawg/deftdawg-location-pathname-homeassistant

Update Snapdrop client to be proxy friendly.
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 + '/server' + webrtc; + const url = protocol + '://' + location.host + location.pathname + '/server' + webrtc; return url; }