aboutsummaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
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);
}
}