Handle footnote backlinks w/o css classes. Fixes #3084

This commit is contained in:
Duncan Babbage 2021-04-28 13:29:48 +12:00
parent 19c43ac5cc
commit 73bbb67d64
2 changed files with 3 additions and 2 deletions

View File

@ -157,7 +157,7 @@
document.addEventListener("click", (ev) =>
{
if (!(ev.target && ev.target instanceof HTMLAnchorElement)) return;
if (!ev.target.matches(".footnotes .reversefootnote, .footnotes .footnoteBackLink, .footnotes .footnote-return")) return;
if (!ev.target.matches(".footnotes .reversefootnote, .footnotes .footnoteBackLink, .footnotes .footnote-return, .footnotes a[href^='#']")) return;
const id = idFromHash(ev.target);
if (!id) return;
const fnref = document.getElementById(id);

View File

@ -375,7 +375,8 @@ img[src*="share-buttons"] {
.newsfoot-footnote-popover .reversefootnote,
.newsfoot-footnote-popover .footnoteBackLink,
.newsfoot-footnote-popover .footnote-return {
.newsfoot-footnote-popover .footnote-return,
.newsfoot-footnote-popover a[href^='#fn'] {
display: none;
}