fix flow in comments.js

This commit is contained in:
Laptop
2025-01-18 12:29:52 +02:00
parent 57162f5730
commit a9cd74edc0

View File

@@ -16,9 +16,9 @@ function comments(self) {
var next = xhr.getResponseHeader('next'); var next = xhr.getResponseHeader('next');
if (next == 'done') { if (next == 'done') {
self.remove(); self.remove();
} else { return;
self.setAttribute('href', next);
} }
self.setAttribute('href', next);
self.textContent = 'more comments'; self.textContent = 'more comments';
} }
xhr.send(); xhr.send();