Selaa lähdekoodia

[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
master
Saúl Ibarra Corretgé 7 vuotta sitten
vanhempi
commit
d200abb8db

+ 5
- 1
react/features/base/lib-jitsi-meet/native/polyfills-browser.js Näytä tiedosto

@@ -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
 

Loading…
Peruuta
Tallenna