Skip to content

Instantly share code, notes, and snippets.

@CarlRevell
Created October 24, 2014 11:21
Show Gist options
  • Save CarlRevell/1063c34fea3949562bba to your computer and use it in GitHub Desktop.
Save CarlRevell/1063c34fea3949562bba to your computer and use it in GitHub Desktop.
//Ensure that older browsers <IE8 won't freak out when seeing a `console.log()` statement.
if(!window.console){window.console={log:function(){}};}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment