Last active
April 18, 2017 14:51
-
-
Save trickpattyFH20/7841194d232cf9c32d47fd0d48ebe1f6 to your computer and use it in GitHub Desktop.
iamdisappoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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