Improve loading torrents

This commit is contained in:
Michał Gątkowski 2022-08-05 22:38:46 +02:00
parent 791e53c84f
commit 45ffca7f9b

View File

@ -108,6 +108,11 @@ function load() {
ul.innerHTML += Mustache.render(template, t);
}
if (torrents.length < 20) {
button.textContent = "No More Results";
button.setAttribute("disabled", "");
}
};
req.open("GET", reqURL);