From e009c30b20ed68e7525dba8791a5ab0dba18e478 Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 25 Jan 2018 16:52:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20the=20InfiniteScroller?= =?UTF-8?q?=20loading=20the=20last=20item=20infinitely?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Actions/InfiniteScroller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Actions/InfiniteScroller.ts b/scripts/Actions/InfiniteScroller.ts index 591f630a..6bbaeb86 100644 --- a/scripts/Actions/InfiniteScroller.ts +++ b/scripts/Actions/InfiniteScroller.ts @@ -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 }