Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Captura global de errores en javascript (ejemplo)
(function() {
var errorCount = 0;
window.onerror = function(error, location, line) {
if (errorCount < 5) {
sendErrorReport(error + ' [' + location + ':' + line + ']');
errorCount++;
}
return false;
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment