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…
Reference in New Issue