Skip to content

Instantly share code, notes, and snippets.

@pandafulmanda
Created January 30, 2014 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandafulmanda/8722454 to your computer and use it in GitHub Desktop.
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
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