mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
Prevent JS crashes in case of empty history
This commit is contained in:
parent
d88336dc39
commit
53bc494c46
@ -163,7 +163,7 @@
|
||||
|
||||
// notify behaviors of the state change
|
||||
$.each(this.icinga.behaviors, function (i, behavior) {
|
||||
if (behavior.onPopState instanceof Function) {
|
||||
if (behavior.onPopState instanceof Function && history.state) {
|
||||
behavior.onPopState(location.href, history.state[i]);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user