Skip to content

Instantly share code, notes, and snippets.

@humidair1999
Created May 13, 2015 23:09
Show Gist options
  • Save humidair1999/bcc909a2afb5ba61a503 to your computer and use it in GitHub Desktop.
Save humidair1999/bcc909a2afb5ba61a503 to your computer and use it in GitHub Desktop.
console.log shim for older browsers
/* console shim */
(function() {
var f = function() {};
if (!window.console) {
window.console = {
log: f, info: f, warn: f, debug: f, error: f
};
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment