mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-28 14:54:52 +02:00
Add ability to override URL with env variable
Useful when testing to avoid modifying config.js.
This commit is contained in:
parent
a5e62aeb92
commit
a2799ad2ec
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue