Created
August 7, 2012 15:23
-
-
Save josephwegner/3286335 to your computer and use it in GitHub Desktop.
Safe console.log
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(console.log && !logsOn) { //If console.log exists, override it with you safe log check | |
console.log = function() { }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment