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