Created
July 18, 2013 07:20
-
-
Save sydneyitguy/6027344 to your computer and use it in GitHub Desktop.
override console.log on old shit browsers
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
if(typeof(window.console) === 'undefined') { | |
window.console = { | |
log: function() {} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment