From fe9ffd29a75c0722b2ae6289cde4b4af48433ee1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 5 Sep 2016 11:25:47 +0200 Subject: Always use the js console when available --- core/js/js.js | 5 +---- 1 file changed, 1 insertion(+), 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 = {}; } -- cgit v1.2.3