cccc/static/sg/lib/firebugx.js

9 lines
366 B
JavaScript
Raw Normal View History

2018-12-04 08:50:29 +00:00
if (typeof console === "undefined" || typeof console.log === "undefined") {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i) {
window.console[names[i]] = function() {}
}
}