mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 14:52:52 +01:00
fix: custom scrollbar does not reload after page switch
This commit is contained in:
@@ -327,6 +327,7 @@ const setup = () => {
|
|||||||
window.swup.hooks.on('link:click', () => {
|
window.swup.hooks.on('link:click', () => {
|
||||||
document.documentElement.style.setProperty('--content-delay', '0ms')
|
document.documentElement.style.setProperty('--content-delay', '0ms')
|
||||||
})
|
})
|
||||||
|
window.swup.hooks.on('content:replace', initCustomScrollbar)
|
||||||
}
|
}
|
||||||
if (window.swup.hooks) {
|
if (window.swup.hooks) {
|
||||||
setup()
|
setup()
|
||||||
|
|||||||
Reference in New Issue
Block a user