mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-27 09:21:21 +01:00
Merge pull request #3089 from babbage/bugfix/3043-footnotes
Handle footnote backlinks that lack css classes and ids. Fixes #3084 for iOS
This commit is contained in:
commit
eddc763c52
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user