mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-09-13 06:40:20 +00:00
Disable Fancybox hash handling with PJAX (#983)
This commit is contained in:
parent
5c7574fd3f
commit
854e2006b6
5
source/js/third-party/fancybox.js
vendored
5
source/js/third-party/fancybox.js
vendored
@ -31,5 +31,8 @@ document.addEventListener('page:loaded', () => {
|
||||
image.wrap(imageWrapLink);
|
||||
});
|
||||
|
||||
Fancybox.bind('[data-fancybox]');
|
||||
// Disable hash handling to avoid conflicts with PJAX navigation.
|
||||
Fancybox.bind('[data-fancybox]', {
|
||||
Hash: false
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user