Remove option to configure multiPartyMeeting server, use window.location.hostname
parent
b4ad79d5f9
commit
71e695b912
|
|
@ -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,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue