Procházet zdrojové kódy

Updates unhandledrejection handler to not relay on JitsiMeetJS being global and fixes onerror handler.

dev1
damencho před 9 roky
rodič
revize
6ade76ab0e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      JitsiMeetJS.js

+ 3
- 3
JitsiMeetJS.js Zobrazit soubor

@@ -65,18 +65,18 @@ var LibJitsiMeet = {
65 65
 
66 66
                 if (oldOnErrorHandler)
67 67
                     oldOnErrorHandler(message, source, lineno, colno, error);
68
-            }
68
+            }.bind(this);
69 69
 
70 70
             // if an old handler exists also fire its events
71 71
             var oldOnUnhandledRejection = window.onunhandledrejection;
72 72
             window.onunhandledrejection = function(event) {
73 73
 
74
-                JitsiMeetJS.getGlobalOnErrorHandler(
74
+                this.getGlobalOnErrorHandler(
75 75
                     null, null, null, null, event.reason);
76 76
 
77 77
                 if(oldOnUnhandledRejection)
78 78
                     oldOnUnhandledRejection(event);
79
-            };
79
+            }.bind(this);
80 80
         }
81 81
 
82 82
         return RTC.init(options || {});

Načítá se…
Zrušit
Uložit