Skip to content

Commit

Permalink
Merge pull request SnapDrop#1 from deftdawg/deftdawg-location-pathnam…
Browse files Browse the repository at this point in the history
…e-homeassistant

Update Snapdrop client to be proxy friendly.
  • Loading branch information
deftdawg authored Apr 7, 2021
2 parents fad4632 + 5e30451 commit 95921ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/scripts/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 95921ee

Please sign in to comment.