🐛 Fixed the InfiniteScroller loading the last item infinitely

This commit is contained in:
Scott 2018-01-25 16:52:09 +01:00
parent 359a76dfa4
commit e009c30b20

View File

@ -3,7 +3,7 @@ import { AnimeNotifier } from "../AnimeNotifier"
// Load more
export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) {
// Prevent firing this event multiple times
if(arn.isLoading || button.disabled) {
if(arn.isLoading || button.disabled || button.classList.contains("hidden")) {
return
}