Skip to content

Commit e2022aa

Browse files
authored
Merge pull request #1 from zipper/safari-popstate-bug
Fixing condition in popstate event handler
2 parents b5946b6 + 188a9e4 commit e2022aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-side/history.ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $.nette.ext('history', {
4848
var state = e.originalEvent.state || this.initialState;
4949
var initialPop = (!this.popped && initialUrl === state.href);
5050
this.popped = true;
51-
if (initialPop || !e.state) {
51+
if (initialPop || !e.originalEvent.state) {
5252
return;
5353
}
5454
if (this.cache && state.ui) {

0 commit comments

Comments
 (0)