Fixed missing posts issue on the homepage

ref DES-221
This commit is contained in:
Sodbileg Gansukh
2024-07-16 13:44:45 +08:00
parent d09d421326
commit 4af74269c7
8 changed files with 16 additions and 16 deletions

View File

@@ -3,7 +3,7 @@ function pagination(isInfinite = true, done, isMasonry = false) {
if (!feedElement) return;
let loading = false;
const target = feedElement.nextElementSibling || document.querySelector('.gh-footer');
const target = document.querySelector('.gh-footer');
const buttonElement = document.querySelector('.gh-loadmore');
if (!document.querySelector('link[rel=next]') && buttonElement) {