diff options
| author | Kyren223 <contact@kyren.codes> | 2026-10-10 06:06:22 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-10-10 06:06:22 +0300 |
| commit | b354565619802f0d3bc5035d89237d5c1f67434e (patch) | |
| tree | 88a084330f62e1e5f56fe5048b40512e39f9a978 /public/footnotes.js | |
| parent | 3c7f9700b91e60937f0ccfb5d036c1e670c00511 (diff) | |
Fixes for htmx
Diffstat (limited to 'public/footnotes.js')
| -rw-r--r-- | public/footnotes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/footnotes.js b/public/footnotes.js index 57ded98..96a9400 100644 --- a/public/footnotes.js +++ b/public/footnotes.js @@ -8,7 +8,7 @@ const SIDENOTES = { readingWidth: null, // max width of the post text, null = no cap }; -document.addEventListener("DOMContentLoaded", () => { +document.addEventListener("htmx:load", () => { const area = document.querySelector("[data-scroll-area]"); const article = area?.querySelector("article"); if (!area || !article) return; |
