Browse Source

Just use console.error, it's in all browsers

Aarni Koskela 2 năm trước cách đây
mục cha
commit
f661fb0fd3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      script.js

+ 1 - 1
script.js

@@ -41,7 +41,7 @@ function runCallback(x, m) {
     try {
         x(m);
     } catch (e) {
-        (console.error || console.log).call(console, e.message, e);
+        console.error("error running callback", x, ":", e);
     }
 }
 function executeCallbacks(queue, m) {