Update network.js

This commit is contained in:
RobinLinus 2021-07-14 11:55:59 +02:00 committed by GitHub
parent 0aa27250a4
commit b849dd7742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}