diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-10 22:53:41 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-10 22:53:41 -0300 |
commit | 2cc1e392fb06bf09f2e8d74d325c25f937ec8c4b (patch) | |
tree | f70a84c82c5eaf152331545618267febb6a1f712 | |
parent | ef16c1475413c0289f305cde6689a0d176fb8e8c (diff) |
client: keep using closestHeading for sticky subheading
Turns out this is necessary for the changelog. Wow.
-rw-r--r-- | src/static/js/client.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/static/js/client.js b/src/static/js/client.js index 1911c6f7..795b5f77 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -2708,7 +2708,8 @@ function updateStickySubheadingContent(index) { const textContainer = templateContent( closestHeading.querySelector('.content-heading-sticky-title')) ?? - closestHeading.querySelector('.content-heading-main-title'); + closestHeading.querySelector('.content-heading-main-title') ?? + closestHeading; for (const child of textContainer.childNodes) { if (child.tagName === 'A') { |