Adjust infinite scroll selector to target article.post-card (#763)

The tag archive header shares the same classes as post cards, but have different elements.

This changes the selector to target article.post-card, which ignores header.post-card
This commit is contained in:
Paul Davis
2021-03-11 18:32:57 +00:00
committed by GitHub
parent 91ced578c5
commit b927cf62ed
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
}
// append contents
var postElements = this.response.querySelectorAll('.post-card');
var postElements = this.response.querySelectorAll('article.post-card');
postElements.forEach(function (item) {
// document.importNode is important, without it the item's owner
// document will be different which can break resizing of