Disable button at end of infinite scrolling
This commit is contained in:
parent
9fa9ccbe89
commit
8d7661cf9e
@ -19,6 +19,7 @@ export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) {
|
|||||||
|
|
||||||
// End of data?
|
// End of data?
|
||||||
if(newIndex === "-1") {
|
if(newIndex === "-1") {
|
||||||
|
button.disabled = true
|
||||||
button.classList.add("hidden")
|
button.classList.add("hidden")
|
||||||
} else {
|
} else {
|
||||||
button.dataset.index = newIndex
|
button.dataset.index = newIndex
|
||||||
|
Loading…
Reference in New Issue
Block a user