From 81437263b465473efc4017204b24e9234624a8e1 Mon Sep 17 00:00:00 2001 From: Aaron Ogle Date: Mon, 6 Jun 2016 23:06:37 -0500 Subject: [PATCH] Allow ssl variable to force https:// on the iframe --- external_api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external_api.js b/external_api.js index eff65bd54..26688ac60 100644 --- a/external_api.js +++ b/external_api.js @@ -25,10 +25,11 @@ var JitsiMeetExternalAPI = (function() * @param parent_node the node that will contain the iframe * @param filmStripOnly if the value is true only the small videos will be * visible. + * @param ssl if the value is true https will be used on the iframe * @constructor */ function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode, - configOverwrite, interfaceConfigOverwrite) { + configOverwrite, interfaceConfigOverwrite, ssl) { if (!width || width < MIN_WIDTH) width = MIN_WIDTH; if (!height || height < MIN_HEIGHT) @@ -50,7 +51,7 @@ var JitsiMeetExternalAPI = (function() if(height) this.iframeHolder.style.height = height + "px"; this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id; - this.url = "https://" + domain + "/"; + this.url = (ssl) ? "https:" : "" +"//" + domain + "/"; if(room_name) this.url += room_name; this.url += "#external=true";