Last active
October 1, 2015 06:57
-
-
Save itspluxstahre/1940942 to your computer and use it in GitHub Desktop.
Fix ie console.* functions
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
// Hello, my name is Plux and I don't like internet explorer. | |
// All JavaScript will break because console is not defined properly. | |
// I just want to send a big thank you to you Microsoft. | |
// This little snippet will prevent you from having to rewrite every JavaScript that you use | |
// where you use any of this. | |
// Notice, you wont get any output from the functions, but atleast it won't break. | |
// Just include this with a standard script tag on your site, and it will be fixed for you. | |
if("undefined"===typeof console){var console={};console.log=console.error=console.info=console.debug=console.warn=console.trace=console.dir=console.dirxml=console.group=console.groupEnd=console.time=console.timeEnd=console.assert=console.profile=function(){}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment