Просмотр исходного кода

Allow ssl variable to force https:// on the iframe

j8
Aaron Ogle 9 лет назад
Родитель
Сommit
81437263b4
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      external_api.js

+ 3
- 2
external_api.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить