diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-06 11:52:26 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-06 11:52:26 -0300 |
commit | ae14f6844b66a46d153c69ca05538d144e8a4509 (patch) | |
tree | 2ed6afd0a2393c79805dd710bd2ebd729c9da516 /src/static/js/client | |
parent | 50d0b505af8ed2038dc0f6ee01b8ba04b04310eb (diff) |
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
Diffstat (limited to 'src/static/js/client')
-rw-r--r-- | src/static/js/client/additional-names-box.js | 6 |
1 files changed, 4 insertions, 2 deletions
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'); |