mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-28 05:20:10 -07:00
Merge pull request #288 from deftdawg/master
Make socket location relative to location snapdrop client was served from
This commit is contained in:
commit
0ba427c37c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user