Skip to content

Instantly share code, notes, and snippets.

@leesei-gist
leesei-gist / console-shim.js
Last active December 17, 2015 23:59
JavaScript: IE console shim
// god-damn IE (~=9) will not expose console if developer tool is not opened
// causing runtime error to scripts
(function (window) {
if (!window.console) window.console = {};
if (!window.console.log) window.console.log = function () {};
})(window);