mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
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:
commit
8741acf8a6
1 changed files with 1 additions and 4 deletions
|
|
@ -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 = {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue