Skip to content

Instantly share code, notes, and snippets.

@trickpattyFH20
Last active April 18, 2017 14:51
Show Gist options
  • Save trickpattyFH20/7841194d232cf9c32d47fd0d48ebe1f6 to your computer and use it in GitHub Desktop.
Save trickpattyFH20/7841194d232cf9c32d47fd0d48ebe1f6 to your computer and use it in GitHub Desktop.
iamdisappoint
console.error = (function() {
const cached_function = console.error;
return function(...args) {
cached_function('%c ',
`background-image: url("http://goo.gl/UBH9ZT");
background-repeat: no-repeat;
background-size: 40px, auto;
font-size: 40px`
);
cached_function.apply(console, [...args]);
};
})();
window.onerror = function(error) {
console.error();
};
console.error('testError: an error has occurred');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment