Add event listener for "astro:before-swap" in slug page
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@ -165,6 +165,7 @@ const ogImage = await getImage({
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("astro:page-load", mountEvent);
|
document.addEventListener("astro:page-load", mountEvent);
|
||||||
|
document.addEventListener("astro:before-swap", eventMounts.clear);
|
||||||
</script>
|
</script>
|
||||||
</article>
|
</article>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user