Last active
December 31, 2015 16:09
-
-
Save nmeans/8012007 to your computer and use it in GitHub Desktop.
console.log shim
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
# Add a no-op version of the console object so accidental | |
# calls to console that leak to prod won't raise errors | |
# in IE < 10. | |
if typeof(console) == "undefined" | |
window.console = | |
log: () -> | |
debug: () -> | |
info: () -> | |
warn: () -> | |
error: () -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment