Fix IE redirect problem

This commit is contained in:
Ilya Daynatovich 2017-02-06 15:32:05 +02:00 committed by Lyubo Marinov
parent 554595acd7
commit c7f3740099
3 changed files with 9 additions and 1 deletions

View File

@ -664,7 +664,7 @@ export default {
* false. * false.
*/ */
isCallstatsEnabled () { isCallstatsEnabled () {
return room.isCallstatsEnabled(); return room && room.isCallstatsEnabled();
}, },
/** /**
* Sends the given feedback through CallStats if enabled. * Sends the given feedback through CallStats if enabled.

View File

@ -1,5 +1,8 @@
/* @flow */ /* @flow */
// Polyfill URL for Internet Explorer.
import 'url-polyfill';
declare var JitsiMeetJS: Object; declare var JitsiMeetJS: Object;
export default JitsiMeetJS; export default JitsiMeetJS;

View File

@ -99,6 +99,11 @@ var config = {
loader: 'imports-loader?define=>false&this=>window', loader: 'imports-loader?define=>false&this=>window',
test: strophe test: strophe
}, {
// Set scope to window for URL polyfill.
loader: 'imports-loader?this=>window',
test: /\/node_modules\/url-polyfill\/.*\.js$/
}, { }, {
// Allow CSS to be imported into JavaScript. // Allow CSS to be imported into JavaScript.