Skip to content

Commit

Permalink
Fix Pjax scroll restoration (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike authored Apr 30, 2021
1 parent 959e100 commit c2c1d82
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/js/pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ const pjax = new Pjax({
'.languages',
'.pjax'
],
analytics : false,
cacheBust : false,
scrollRestoration: false,
scrollTo : !CONFIG.bookmark.enable
analytics: false,
cacheBust: false,
scrollTo : !CONFIG.bookmark.enable
});

document.addEventListener('pjax:success', () => {
Expand Down

0 comments on commit c2c1d82

Please sign in to comment.