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

auto_join_3.3
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

View File

@ -4,7 +4,6 @@ var config =
loginEnabled : false, loginEnabled : false,
developmentPort : 3443, developmentPort : 3443,
productionPort : 443, productionPort : 443,
multipartyServer : 'letsmeet.no',
/** /**
* If defaultResolution is set, it will override user settings when joining: * If defaultResolution is set, it will override user settings when joining:

View File

@ -1,14 +1,12 @@
export function getSignalingUrl(peerId, roomId) export function getSignalingUrl(peerId, roomId)
{ {
const hostname = window.config.multipartyServer;
const port = const port =
process.env.NODE_ENV !== 'production' ? process.env.NODE_ENV !== 'production' ?
window.config.developmentPort window.config.developmentPort
: :
window.config.productionPort; 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; return url;
} }