|
@@ -34,7 +34,7 @@ var oldOnUnhandledRejection = window.onunhandledrejection;
|
34
|
34
|
* all handlers that were previously added. This handler handles rejected
|
35
|
35
|
* Promises.
|
36
|
36
|
*/
|
37
|
|
-function JitsiGlobalUnhandlerRejection(event) {
|
|
37
|
+function JitsiGlobalUnhandledRejection(event) {
|
38
|
38
|
handlers.forEach(function (handler) {
|
39
|
39
|
handler(null, null, null, null, event.reason);
|
40
|
40
|
});
|
|
@@ -44,7 +44,7 @@ function JitsiGlobalUnhandlerRejection(event) {
|
44
|
44
|
|
45
|
45
|
//Setting the custom error handlers.
|
46
|
46
|
window.onerror = JitsiGlobalErrorHandler;
|
47
|
|
-window.onunhandledrejection = JitsiGlobalUnhandlerRejection;
|
|
47
|
+window.onunhandledrejection = JitsiGlobalUnhandledRejection;
|
48
|
48
|
|
49
|
49
|
|
50
|
50
|
var GlobalOnErrorHandler = {
|
|
@@ -70,7 +70,7 @@ var GlobalOnErrorHandler = {
|
70
|
70
|
* @param error the error that is going to be passed to the rejection
|
71
|
71
|
* handler.
|
72
|
72
|
*/
|
73
|
|
- callUnhandlerRejectionHandler: function (error) {
|
|
73
|
+ callUnhandledRejectionHandler: function (error) {
|
74
|
74
|
var errHandler = window.onunhandledrejection;
|
75
|
75
|
if(!errHandler)
|
76
|
76
|
return;
|