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');
if (next == 'done') {
self.remove();
} else {
self.setAttribute('href', next);
return;
}
self.setAttribute('href', next);
self.textContent = 'more comments';
}
xhr.send();