Created
February 6, 2013 14:52
-
-
Save leobossmann/4723027 to your computer and use it in GitHub Desktop.
console.log replacent for incapable browsers
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).match(/object/i)){ | |
console = { log : function(a){ alert(a) } }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment