Last Updated: February 25, 2016
·
4.524K
· 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) {};
    };
};