Release 2025-05-19
This commit is contained in:
15
web/src/components/HtmxScript.astro
Normal file
15
web/src/components/HtmxScript.astro
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
<script>
|
||||
import * as htmx from 'htmx.org'
|
||||
|
||||
htmx.config.globalViewTransitions = false
|
||||
|
||||
document.addEventListener('astro:after-swap', () => {
|
||||
htmx.process(document.body)
|
||||
})
|
||||
|
||||
window.htmx = htmx
|
||||
</script>
|
||||
Reference in New Issue
Block a user