Disable button at end of infinite scrolling

This commit is contained in:
Eduard Urbach 2017-11-20 10:21:16 +01:00
parent 9fa9ccbe89
commit 8d7661cf9e

View File

@ -19,6 +19,7 @@ export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) {
// End of data?
if(newIndex === "-1") {
button.disabled = true
button.classList.add("hidden")
} else {
button.dataset.index = newIndex