Bläddra i källkod

[RN] Polyfill window.location.search

Currently lib-jitsi-meet looks there in case the `anonymousdomain` config option
was specified.

While this commit alone doesn't add support for authenticated deployments, it
avoids a failure if `anonymousdomain` was set, regardless of authentication being
turned on or not.

Fixes: https://github.com/jitsi/jitsi-meet/issues/1858
j8
Saúl Ibarra Corretgé 8 år sedan
förälder
incheckning
d200abb8db
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5
    1
      react/features/base/lib-jitsi-meet/native/polyfills-browser.js

+ 5
- 1
react/features/base/lib-jitsi-meet/native/polyfills-browser.js Visa fil

@@ -259,7 +259,11 @@ function _visitNode(node, callback) {
259 259
     // location
260 260
     if (typeof global.location === 'undefined') {
261 261
         global.location = {
262
-            href: ''
262
+            href: '',
263
+
264
+            // Required by:
265
+            // - lib-jitsi-meet/modules/xmpp/xmpp.js
266
+            search: ''
263 267
         };
264 268
     }
265 269
 

Laddar…
Avbryt
Spara