Skip to content

Instantly share code, notes, and snippets.

@binaryreverse
Created March 31, 2016 15:05
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 binaryreverse/eb7ff0d15e0f27cf56ba55dc0bb536d9 to your computer and use it in GitHub Desktop.
Save binaryreverse/eb7ff0d15e0f27cf56ba55dc0bb536d9 to your computer and use it in GitHub Desktop.
Dummy console.log() for Browsers with non active Debugging tools. This prevents console errors in production code.
if(typeof console === 'undefined') {
console = { log: function() { } };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment