We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff2ec8 commit 6601e7fCopy full SHA for 6601e7f
content.js
@@ -117,9 +117,13 @@ new function() {
117
118
// handle console.error()
119
var consoleErrorFunc = window.console.error;
120
- window.console.error = function(text) {
121
- consoleErrorFunc.call(console, text);
122
- handleUserError(text);
+ window.console.error = function() {
+ var argsArray = [];
+ for(var i in arguments) { // because arguments.join() not working! oO
123
+ argsArray.push(arguments[i]);
124
+ }
125
+ consoleErrorFunc.apply(console, argsArray);
126
+ handleUserError(argsArray.join(' '));
127
};
128
129
// handle uncaught errors
0 commit comments