mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +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
|
||||
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);
|
||||
}
|
||||
return this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user