From d200abb8db8008448d8e5594997b54f7357eac53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 4 Aug 2017 14:57:48 +0200 Subject: [PATCH] [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 --- .../base/lib-jitsi-meet/native/polyfills-browser.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js index c7c35cdb0..61f9bc343 100644 --- a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js +++ b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js @@ -259,7 +259,11 @@ function _visitNode(node, callback) { // location if (typeof global.location === 'undefined') { global.location = { - href: '' + href: '', + + // Required by: + // - lib-jitsi-meet/modules/xmpp/xmpp.js + search: '' }; }