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

[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é 8 лет назад
Родитель
Сommit
d200abb8db
1 измененных файлов: 5 добавлений и 1 удалений
  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 Просмотреть файл

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

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