Remove option to configure multiPartyMeeting server, use window.location.hostname

This commit is contained in:
Håvar Aambø Fosstveit
2020-03-27 11:18:49 +01:00
parent b4ad79d5f9
commit 71e695b912
2 changed files with 1 additions and 4 deletions
-1
View File
@@ -4,7 +4,6 @@ var config =
loginEnabled : false,
developmentPort : 3443,
productionPort : 443,
multipartyServer : 'letsmeet.no',
/**
* If defaultResolution is set, it will override user settings when joining:
+1 -3
View File
@@ -1,14 +1,12 @@
export function getSignalingUrl(peerId, roomId)
{
const hostname = window.config.multipartyServer;
const port =
process.env.NODE_ENV !== 'production' ?
window.config.developmentPort
:
window.config.productionPort;
const url = `wss://${hostname}:${port}/?peerId=${peerId}&roomId=${roomId}`;
const url = `wss://${window.location.hostname}:${port}/?peerId=${peerId}&roomId=${roomId}`;
return url;
}