diff options
| author | Joe Carstairs <me@joeac.net> | 2026-09-15 13:05:00 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-09-15 13:05:00 +0100 |
| commit | e8b7bc3eecb8e6f462f23d60c28ef78cb88b5c22 (patch) | |
| tree | ea9aaf617d8c0fe83bbf3d70a6e097f5de9ae116 | |
| parent | 3e4e09ba31b0f08d4a864a7e6aee9694181d0bcf (diff) | |
feed-condense-content.js: use addEventListener instead of inline handler
| -rw-r--r-- | http/public/scripts/feed-condense-content.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/public/scripts/feed-condense-content.js b/http/public/scripts/feed-condense-content.js index c0b5577..9f2d904 100644 --- a/http/public/scripts/feed-condense-content.js +++ b/http/public/scripts/feed-condense-content.js @@ -19,7 +19,7 @@ export function addExpandItemButtons() { const contentId = crypto.randomUUID(); content.setAttribute("data-content-id", contentId); const button = new HTMLButtonElement(); - button.onclick = `toggleContentExpanded(${contentId})`; + button.addEventListener("click", () => toggleContentExpanded(contentId)); content.insertAdjacentElement("afterend", button); } } |
