« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/client.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/static/js/client.js b/src/static/js/client.js
index 8b470832..1911c6f7 100644
--- a/src/static/js/client.js
+++ b/src/static/js/client.js
@@ -2706,9 +2706,9 @@ function updateStickySubheadingContent(index) {
     }
 
     const textContainer =
-      closestHeading.querySelector('.content-heading-main-title')
-        // Just for compatibility with older builds of the site.
-        ?? closestHeading;
+      templateContent(
+        closestHeading.querySelector('.content-heading-sticky-title')) ??
+      closestHeading.querySelector('.content-heading-main-title');
 
     for (const child of textContainer.childNodes) {
       if (child.tagName === 'A') {