浏览代码

feat(utils): style consistency

dev1
Saúl Ibarra Corretgé 8 年前
父节点
当前提交
2766d9d433
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      modules/util/GlobalOnErrorHandler.js

+ 1
- 3
modules/util/GlobalOnErrorHandler.js 查看文件

@@ -32,9 +32,7 @@ const oldOnUnhandledRejection = window.onunhandledrejection;
32 32
  */
33 33
 function JitsiGlobalUnhandledRejection(event) {
34 34
     handlers.forEach(handler => handler(null, null, null, null, event.reason));
35
-    if (oldOnUnhandledRejection) {
36
-        oldOnUnhandledRejection(event);
37
-    }
35
+    oldOnUnhandledRejection && oldOnUnhandledRejection(event);
38 36
 }
39 37
 
40 38
 // Setting the custom error handlers.

正在加载...
取消
保存