Skip to content

Instantly share code, notes, and snippets.

@noahrc
Created February 22, 2013 19:36
Show Gist options
  • Save noahrc/5015981 to your computer and use it in GitHub Desktop.
Save noahrc/5015981 to your computer and use it in GitHub Desktop.
Define a console object to prevent errors in IE
// Define a console object to prevent errors in IE
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