Browse Source

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

Aarni Koskela 2 years ago
parent
commit
f661fb0fd3
1 changed files with 1 additions and 1 deletions
  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) {