Skip to content

Commit

Permalink
Add ability to override URL with env variable
Browse files Browse the repository at this point in the history
Useful when testing to avoid modifying config.js.
  • Loading branch information
saghul authored and hristoterezov committed Mar 28, 2017
1 parent a5e62ae commit a2799ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion windows/jitsi-meet/render.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global process */
const remoteControl = require("../../modules/remotecontrol");
let postis = require("postis");
const setupScreenSharingForWindow = require("../../modules/screensharing");
Expand All @@ -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);
Expand Down

0 comments on commit a2799ad

Please sign in to comment.