瀏覽代碼

Changed variable from ssl to noSsl

Defaults to SSL, only if the noSsl flag is true will it use http
master
Aaron Ogle 9 年之前
父節點
當前提交
98919e0996
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      external_api.js

+ 3
- 3
external_api.js 查看文件

25
      * @param parent_node the node that will contain the iframe
25
      * @param parent_node the node that will contain the iframe
26
      * @param filmStripOnly if the value is true only the small videos will be
26
      * @param filmStripOnly if the value is true only the small videos will be
27
      * visible.
27
      * visible.
28
-     * @param ssl if the value is true https will be used on the iframe
28
+     * @param noSsl if the value is true https won't be used
29
      * @constructor
29
      * @constructor
30
      */
30
      */
31
     function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
31
     function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
32
-        configOverwrite, interfaceConfigOverwrite, ssl) {
32
+        configOverwrite, interfaceConfigOverwrite, noSsl) {
33
         if (!width || width < MIN_WIDTH)
33
         if (!width || width < MIN_WIDTH)
34
             width = MIN_WIDTH;
34
             width = MIN_WIDTH;
35
         if (!height || height < MIN_HEIGHT)
35
         if (!height || height < MIN_HEIGHT)
51
         if(height)
51
         if(height)
52
             this.iframeHolder.style.height = height + "px";
52
             this.iframeHolder.style.height = height + "px";
53
         this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id;
53
         this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id;
54
-        this.url = (ssl) ? "https:" : "" +"//" + domain + "/";
54
+        this.url = (noSsl) ? "http" : "https" +"://" + domain + "/";
55
         if(room_name)
55
         if(room_name)
56
             this.url += room_name;
56
             this.url += room_name;
57
         this.url += "#external=true";
57
         this.url += "#external=true";

Loading…
取消
儲存