Merge pull request #624 from jitsi/updates-callstats-error-reporting
Updates callstats error reporting
This commit is contained in:
commit
e2a7a66772
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue