Created
January 23, 2010 04:16
-
-
Save robertsosinski/284421 to your computer and use it in GitHub Desktop.
Makes console functions so browsers without firebug will not raise errors
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
window.console = window.console || {}; | |
["log", "info", "debug", "warn", "error"].forEach(function(level) { | |
console[level] = console[level] || function(){} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment