/ Published in: JavaScript
prevent errors on non-firebug browsers
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// prevent errors on non-firebug browsers (function() { var f = function() {}; var c = { info: f, log: f, assert: f, warn: f, error: f, dir: f, group: f, groupEnd: f }; if(!window.console) window.console = c; })();