summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-05 11:25:47 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-05 11:25:47 +0200
commitfe9ffd29a75c0722b2ae6289cde4b4af48433ee1 (patch)
treef35d4c142b0fa509d5b4e60becbefa6da544b827 /core/js/js.js
parent8b484eedf029b8e1a9dcef0efb09db381888c4b0 (diff)
downloadnextcloud-server-fe9ffd29a75c0722b2ae6289cde4b4af48433ee1.tar.gz
nextcloud-server-fe9ffd29a75c0722b2ae6289cde4b4af48433ee1.zip
Always use the js console when available
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js
index a123846a72e..c7a06b85e53 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -26,10 +26,7 @@ if (typeof oc_webroot === "undefined") {
oc_webroot = oc_webroot.substr(0, oc_webroot.lastIndexOf('/'));
}
}
-if (
- oc_debug !== true || typeof console === "undefined" ||
- typeof console.log === "undefined"
-) {
+if (typeof console === "undefined" || typeof console.log === "undefined") {
if (!window.console) {
window.console = {};
}