mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
One more safety measure for IEs weird way of providing a JS console
This commit is contained in:
parent
4466053679
commit
2febbdd7d5
@ -81,7 +81,7 @@
|
|||||||
// We want our log messages to carry precise timestamps
|
// We want our log messages to carry precise timestamps
|
||||||
args.unshift(this.icinga.utils.timeWithMs());
|
args.unshift(this.icinga.utils.timeWithMs());
|
||||||
|
|
||||||
if (this.hasConsole() && this.hasLogLevel(level)) {
|
if (this.hasConsole() && this.hasLogLevel(level) && typeof console[level].apply === 'function') {
|
||||||
console[level].apply(console, args);
|
console[level].apply(console, args);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user