[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
This commit is contained in:
Saúl Ibarra Corretgé 2017-08-04 14:57:48 +02:00 committed by Lyubo Marinov
parent 002e48b886
commit d200abb8db
1 changed files with 5 additions and 1 deletions

View File

@ -259,7 +259,11 @@ function _visitNode(node, callback) {
// location // location
if (typeof global.location === 'undefined') { if (typeof global.location === 'undefined') {
global.location = { global.location = {
href: '' href: '',
// Required by:
// - lib-jitsi-meet/modules/xmpp/xmpp.js
search: ''
}; };
} }