mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-22 07:04:53 +08:00
Update network.js
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user