Log global errors
Use the global error handler, window.onerror, to catch miscellaneous exceptions and pipe them into the debug log. Fixes #456 // FREEBIE
This commit is contained in:
parent
c1aada4f0f
commit
ae3a834b4c
2 changed files with 29 additions and 10 deletions
|
@ -33,5 +33,9 @@
|
|||
}).fail(resolve);
|
||||
});
|
||||
};
|
||||
|
||||
window.onerror = function(message, script, line, col, error) {
|
||||
console.log(error);
|
||||
};
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue