mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
Integrates docker.
This commit is contained in:
parent
993b484396
commit
f418dc26b8
5 changed files with 53 additions and 74 deletions
|
@ -54,9 +54,8 @@ class ServerConnection {
|
|||
_endpoint() {
|
||||
// hack to detect if deployment or development environment
|
||||
const protocol = location.protocol.startsWith('https') ? 'wss' : 'ws';
|
||||
const host = location.hostname.startsWith('localhost') ? 'localhost:3000' : (location.host + '/server');
|
||||
const webrtc = window.isRtcSupported ? '/webrtc' : '/fallback';
|
||||
const url = protocol + '://' + host + webrtc;
|
||||
const url = protocol + '://' + location.host + '/server' + webrtc;
|
||||
return url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue