diff options
Diffstat (limited to 'http')
| -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 9f2d904..d15deb0 100644 --- a/http/public/scripts/feed-condense-content.js +++ b/http/public/scripts/feed-condense-content.js @@ -18,7 +18,7 @@ export function addExpandItemButtons() { for (const content of document.querySelectorAll(".e-content")) { const contentId = crypto.randomUUID(); content.setAttribute("data-content-id", contentId); - const button = new HTMLButtonElement(); + const button = document.createElement("button"); button.addEventListener("click", () => toggleContentExpanded(contentId)); content.insertAdjacentElement("afterend", button); } |
