Эх сурвалжийг харах

HUE-6896 [frontend] Errorcatcher should not log jQuery triggered events

Enrico Berti 8 жил өмнө
parent
commit
b7d0a1d

+ 3 - 0
desktop/core/src/desktop/static/desktop/js/hue.errorcatcher.js

@@ -24,6 +24,9 @@
    * @param {Object} [error] - available in some browsers, it contains the stack
    */
   window.onerror = function (msg, url, line, column, error) {
+    if (msg && msg.isTrigger === 3) {
+      return;
+    }
     try {
       console.error('Hue detected a Javascript error: ', url, line, column, msg);
       var xmlHTTP = new XMLHttpRequest();