aboutsummaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-09-15 13:05:00 +0100
committerJoe Carstairs <me@joeac.net>2026-09-15 13:05:00 +0100
commite8b7bc3eecb8e6f462f23d60c28ef78cb88b5c22 (patch)
treeea9aaf617d8c0fe83bbf3d70a6e097f5de9ae116 /http
parent3e4e09ba31b0f08d4a864a7e6aee9694181d0bcf (diff)
feed-condense-content.js: use addEventListener instead of inline handler
Diffstat (limited to 'http')
-rw-r--r--http/public/scripts/feed-condense-content.js2
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);
}
}