Merge pull request #1270 from nextcloud/issue-1265-always-use-js-console-when-available

Always use the js console when available
This commit is contained in:
Morris Jobke 2016-09-05 13:03:02 +02:00 committed by GitHub
commit 8741acf8a6

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