Created
January 30, 2014 23:33
-
-
Save pandafulmanda/8722454 to your computer and use it in GitHub Desktop.
Quick gist to avoid errors when console.log is undefined in non-supported (ahem IE 9) 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" || typeof console.log =="undefined") {window['console'] = {}; window.console['log'] = function(){};} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment