瀏覽代碼

[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 年之前
父節點
當前提交
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
     // location
259
     // location
260
     if (typeof global.location === 'undefined') {
260
     if (typeof global.location === 'undefined') {
261
         global.location = {
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…
取消
儲存