loader.js: fix JS error on IE
This commit is contained in:
parent
29eedc1d4a
commit
96f50c5dfa
|
@ -743,7 +743,7 @@
|
|||
|
||||
if (forceFocus && forceFocus.length) {
|
||||
activeElementPath = this.icinga.utils.getCSSPath($(forceFocus));
|
||||
} else if (document.activeElement.id === 'search') {
|
||||
} else if (document.activeElement && document.activeElement.id === 'search') {
|
||||
activeElementPath = '#search';
|
||||
} else if (document.activeElement
|
||||
&& document.activeElement !== document.body
|
||||
|
|
Loading…
Reference in New Issue