Selaa lähdekoodia

feat(external_api) drop support for noSSL option

Bwrosers have not allowerd WebRTC on non-secure origins for a very long time
now.
master
Saúl Ibarra Corretgé 4 vuotta sitten
vanhempi
commit
ad496ac245
1 muutettua tiedostoa jossa 1 lisäystä ja 10 poistoa
  1. 1
    10
      modules/API/external/external_api.js

+ 1
- 10
modules/API/external/external_api.js Näytä tiedosto

@@ -124,16 +124,13 @@ function changeParticipantNumber(APIInstance, number) {
124 124
  * configuration options defined in interface_config.js to be overridden.
125 125
  * @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
126 126
  * authentication.
127
- * @param {boolean} [options.noSSL] - If the value is true https won't be used.
128 127
  * @param {string} [options.roomName] - The name of the room to join.
129 128
  * @returns {string} The URL.
130 129
  */
131 130
 function generateURL(domain, options = {}) {
132 131
     return urlObjectToString({
133 132
         ...options,
134
-        url:
135
-            `${options.noSSL ? 'http' : 'https'}://${
136
-                domain}/#jitsi_meet_external_api_id=${id}`
133
+        url: `https://${domain}/#jitsi_meet_external_api_id=${id}`
137 134
     });
138 135
 }
139 136
 
@@ -164,7 +161,6 @@ function parseArguments(args) {
164 161
             parentNode,
165 162
             configOverwrite,
166 163
             interfaceConfigOverwrite,
167
-            noSSL,
168 164
             jwt,
169 165
             onload
170 166
         ] = args;
@@ -176,7 +172,6 @@ function parseArguments(args) {
176 172
             parentNode,
177 173
             configOverwrite,
178 174
             interfaceConfigOverwrite,
179
-            noSSL,
180 175
             jwt,
181 176
             onload
182 177
         };
@@ -237,8 +232,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
237 232
      * configuration options defined in config.js to be overridden.
238 233
      * @param {Object} [options.interfaceConfigOverwrite] - Object containing
239 234
      * configuration options defined in interface_config.js to be overridden.
240
-     * @param {boolean} [options.noSSL] - If the value is true https won't be
241
-     * used.
242 235
      * @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
243 236
      * authentication.
244 237
      * @param {string} [options.onload] - The onload function that will listen
@@ -261,7 +254,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
261 254
             parentNode = document.body,
262 255
             configOverwrite = {},
263 256
             interfaceConfigOverwrite = {},
264
-            noSSL = false,
265 257
             jwt = undefined,
266 258
             onload = undefined,
267 259
             invitees,
@@ -276,7 +268,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
276 268
             configOverwrite,
277 269
             interfaceConfigOverwrite,
278 270
             jwt,
279
-            noSSL,
280 271
             roomName,
281 272
             devices,
282 273
             userInfo,

Loading…
Peruuta
Tallenna