Created
March 31, 2016 15:05
-
-
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.
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 console === 'undefined') { | |
console = { log: function() { } }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment