Always use the js console when available
This commit is contained in:
parent
8b484eedf0
commit
fe9ffd29a7
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