Skip to content

Commit

Permalink
Merge pull request #1 from zipper/safari-popstate-bug
Browse files Browse the repository at this point in the history
Fixing condition in popstate event handler
  • Loading branch information
zipper authored Jan 22, 2018
2 parents b5946b6 + 188a9e4 commit e2022aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-side/history.ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $.nette.ext('history', {
var state = e.originalEvent.state || this.initialState;
var initialPop = (!this.popped && initialUrl === state.href);
this.popped = true;
if (initialPop || !e.state) {
if (initialPop || !e.originalEvent.state) {
return;
}
if (this.cache && state.ui) {
Expand Down

0 comments on commit e2022aa

Please sign in to comment.