mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
10 lines
350 B
JavaScript
10 lines
350 B
JavaScript
|
|
||
|
if (!("console" in window) || !("firebug" in console))
|
||
|
{
|
||
|
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() {}
|
||
|
}
|