aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-05 13:03:02 +0200
committerGitHub <noreply@github.com>2016-09-05 13:03:02 +0200
commit8741acf8a6dfb3919c43d3cee5a9c13f6c1e4b9f (patch)
tree33fdba9263b3d49d2e8b92dc511db5f101a69063
parentdb6a3367adeb4a0f4ca8873bd6ecbf1ea498705d (diff)
parentfe9ffd29a75c0722b2ae6289cde4b4af48433ee1 (diff)
downloadnextcloud-server-8741acf8a6dfb3919c43d3cee5a9c13f6c1e4b9f.tar.gz
nextcloud-server-8741acf8a6dfb3919c43d3cee5a9c13f6c1e4b9f.zip
Merge pull request #1270 from nextcloud/issue-1265-always-use-js-console-when-available
Always use the js console when available
-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 = {};
}