Always use the js console when available

This commit is contained in:
Joas Schilling 2016-09-05 11:25:47 +02:00
parent 8b484eedf0
commit fe9ffd29a7
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 1 additions and 4 deletions

View File

@ -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 = {};
}