Created
February 24, 2011 17:46
-
-
Save jaymzcd/842535 to your computer and use it in GitHub Desktop.
Override console.log to avoid exceptions in browsers that don't support it or where it's not enabled
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" || typeof console.log == "undefined") var console = { log: function() {} }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment