Last Updated: February 25, 2016
·
5.06K
· g

Console.log Fallback (IE)

//Console.log Fallback for Internet Explorer
if ( !window.console ) {
    window.console = new function() {
        this.log = function(str) {};
        this.dir = function(str) {};
    };
};