diff options
Diffstat (limited to 'juick-www/src/main/js/killy/index.js')
-rw-r--r-- | juick-www/src/main/js/killy/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/js/killy/index.js b/juick-www/src/main/js/killy/index.js index b96613c2f..c9885b037 100644 --- a/juick-www/src/main/js/killy/index.js +++ b/juick-www/src/main/js/killy/index.js @@ -305,7 +305,7 @@ function embedLinksToX(x, beforeNodeSelector, allLinksSelector) { function embedLinksToArticles() { let beforeNodeSelector = 'nav.l'; let allLinksSelector = 'p:not(.ir) a, pre a'; - Array.from(document.querySelectorAll('#content > article')).forEach(article => { + Array.from(document.querySelectorAll('#content article')).forEach(article => { embedLinksToX(article, beforeNodeSelector, allLinksSelector); }); } @@ -322,7 +322,7 @@ function embedLinksToPost() { * Embed all the links in all messages/replies on the page. */ function embedAll() { - if (document.querySelectorAll('#content > article').length) { + if (document.querySelector('#content article[data-mid]')) { embedLinksToArticles(); } else { embedLinksToPost(); |