Merge pull request #7772 from owncloud/filter_more_jsconsole

Also replace console.time/timeEnd when not in DEBUG mode
This commit is contained in:
VicDeo 2014-03-25 20:29:26 +02:00
commit 86356db044
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ if (oc_debug !== true || typeof console === "undefined" || typeof console.log ==
if (!window.console) {
window.console = {};
}
var methods = ['log', 'debug', 'warn', 'info', 'error', 'assert'];
var methods = ['log', 'debug', 'warn', 'info', 'error', 'assert', 'time', 'timeEnd'];
for (var i = 0; i < methods.length; i++) {
console[methods[i]] = function () { };
}