Add ability to override URL with env variable

Useful when testing to avoid modifying config.js.
This commit is contained in:
Saúl Ibarra Corretgé 2017-03-27 10:39:30 +02:00 committed by hristoterezov
parent a5e62aeb92
commit a2799ad2ec

View file

@ -1,3 +1,4 @@
/* global process */
const remoteControl = require("../../modules/remotecontrol");
let postis = require("postis");
const setupScreenSharingForWindow = require("../../modules/screensharing");
@ -13,7 +14,7 @@ let channel;
* Cteates the iframe that will load Jitsi Meet.
*/
let iframe = document.createElement('iframe');
iframe.src = config.jitsiMeetURL;
iframe.src = process.env.JITSI_MEET_URL || config.jitsiMeetURL;
iframe.allowFullscreen = true;
iframe.onload = onload;
document.body.appendChild(iframe);