Merge pull request #624 from jitsi/updates-callstats-error-reporting

Updates callstats error reporting
This commit is contained in:
hristoterezov 2016-05-09 13:23:01 -05:00
commit e2a7a66772
1 changed files with 10 additions and 0 deletions

View File

@ -341,6 +341,16 @@ export default {
if(oldOnErrorHandler)
oldOnErrorHandler(message, source, lineno, colno, error);
};
var oldOnUnhandledRejection = window.onunhandledrejection;
window.onunhandledrejection = function(event) {
JitsiMeetJS.getGlobalOnErrorHandler(
null, null, null, null, event.reason);
if(oldOnUnhandledRejection)
oldOnUnhandledRejection(event);
};
}
return JitsiMeetJS.init(config).then(() => {