diff options
| author | Joe Carstairs <me@joeac.net> | 2026-09-15 17:46:32 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-09-15 17:46:32 +0100 |
| commit | f4cf448a9c527f6281e4e91517d4b3de7a5b0bb1 (patch) | |
| tree | 47c63ba499ae1fdf3c884313b50dfef6015d20dd /http/public/scripts | |
| parent | 39f60d188a5add9dd3ad2256d13c16978edf03ec (diff) | |
feed-condense-content.js: replace new HTMLButtonElement() with
document.createElement("button")
Diffstat (limited to 'http/public/scripts')
| -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); } |
