diff options
Diffstat (limited to 'src')
-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') { |