From ae14f6844b66a46d153c69ca05538d144e8a4509 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 6 Apr 2025 11:52:26 -0300 Subject: content, client: additional-names-box: integrate more neatly Since we're checking for [inert] ancestor anyway, we don't need to depend on BS "first matched by querySelector()" logic anymore --- src/static/js/client/additional-names-box.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/static/js') diff --git a/src/static/js/client/additional-names-box.js b/src/static/js/client/additional-names-box.js index da1467ec..38e6d52f 100644 --- a/src/static/js/client/additional-names-box.js +++ b/src/static/js/client/additional-names-box.js @@ -30,8 +30,10 @@ export function getPageReferences() { info.stickyHeadingLink = document.querySelector( - '.content-sticky-heading-container ' + - 'a[href="#additional-names-box"]'); + '.content-sticky-heading-container' + + ' ' + + 'a[href="#additional-names-box"]' + + ':not(:matches([inert] *))'); info.contentContainer = document.querySelector('#content'); -- cgit 1.3.0-6-gf8a5