first commit
This commit is contained in:
9
js/firebugx.js
Normal file
9
js/firebugx.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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() {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user