fix: meta theme color flash issue

This commit is contained in:
radishzzz 2025-02-18 17:10:40 +00:00
parent 1040aff64c
commit b1777ed0ef
3 changed files with 60 additions and 52 deletions

View file

@ -26,7 +26,6 @@ function initScrollbar() {
}
}
document.addEventListener('theme-changed', initScrollbar)
document.addEventListener('astro:after-swap', initScrollbar)
initScrollbar()
</script>