mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Fix Pjax scroll restoration (#256)
This commit is contained in:
parent
959e100298
commit
c2c1d82590
@ -9,10 +9,9 @@ const pjax = new Pjax({
|
|||||||
'.languages',
|
'.languages',
|
||||||
'.pjax'
|
'.pjax'
|
||||||
],
|
],
|
||||||
analytics : false,
|
analytics: false,
|
||||||
cacheBust : false,
|
cacheBust: false,
|
||||||
scrollRestoration: false,
|
scrollTo : !CONFIG.bookmark.enable
|
||||||
scrollTo : !CONFIG.bookmark.enable
|
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('pjax:success', () => {
|
document.addEventListener('pjax:success', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user