mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-12 07:12:52 +01:00
fix: fix errors and reformat code
This commit is contained in:
@@ -297,7 +297,7 @@ const setup = () => {
|
||||
document.documentElement.style.setProperty('--content-delay', '0ms')
|
||||
})
|
||||
window.swup.hooks.on('content:replace', initCustomScrollbar)
|
||||
window.swup.hooks.on('visit:start', (visit) => {
|
||||
window.swup.hooks.on('visit:start', (visit: {to: {url: string}}) => {
|
||||
// change banner height immediately when a link is clicked
|
||||
const bodyElement = document.querySelector('body')
|
||||
if (pathsEqual(visit.to.url, url('/'))) {
|
||||
@@ -364,7 +364,6 @@ const setup = () => {
|
||||
window.swup.hooks.on(
|
||||
"content:replace",
|
||||
() => {
|
||||
console.log("content:replace")
|
||||
lightbox?.destroy?.()
|
||||
},
|
||||
{ before: true },
|
||||
|
||||
Reference in New Issue
Block a user