Explorar el Código

feat(utils): style consistency

dev1
Saúl Ibarra Corretgé hace 8 años
padre
commit
2766d9d433
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1
    3
      modules/util/GlobalOnErrorHandler.js

+ 1
- 3
modules/util/GlobalOnErrorHandler.js Ver fichero

@@ -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.

Loading…
Cancelar
Guardar