Enables global error handler.

This commit is contained in:
damencho 2016-04-05 17:18:38 -05:00
parent b60e074710
commit e56c936798
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ export default {
this.roomName = options.roomName;
JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.TRACE);
// attaches global error handler
window.onerror = JitsiMeetJS.getGlobalOnErrorHandler;
return JitsiMeetJS.init(config).then(() => {
return Promise.all([
// try to retrieve audio and video