Created
June 21, 2013 21:05
-
-
Save pbojinov/5834301 to your computer and use it in GitHub Desktop.
Console fix for sad boy IE
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
/** | |
* For browsers like IE8 and below so we do not reek havok | |
*/ | |
if (!('console' in window)) { | |
function nothing() {} | |
window.console = { | |
debug: nothing, | |
dir: nothing, | |
error: nothing, | |
group: nothing, | |
groupCollapsed: nothing, | |
groupEnd: nothing, | |
info: nothing, | |
log: nothing, | |
time: nothing, | |
timeEnd: nothing, | |
trace: nothing, | |
warn: nothing | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment