fix: remove obsolete astro:after-swap listener
which can be triggered in Astro 5.0 even with Swup, causing duplicate initialization
This commit is contained in:
1 parent
4a4c19a3ed
commit
1b4b859e87
2 files changed
-9
No files matched your search
@@ -337,10 +337,6 @@ function init() {
|
||||
/* Load settings when entering the site */
|
||||
init();
|
||||
|
||||
/* Load settings before swapping */
|
||||
/* astro:after-swap event happened before swap animation */
|
||||
document.addEventListener('astro:after-swap', init);
|
||||
|
||||
const setup = () => {
|
||||
// TODO: temp solution to change the height of the banner
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user