From 3efb4ab9fd95e83847fe1b9573c7e00bf0681723 Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Wed, 28 Jan 2026 17:18:42 -0500 Subject: [PATCH] Fix Library infinite scroll on 10.11.x --- scripts/infiniteScroll.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/infiniteScroll.js b/scripts/infiniteScroll.js index 7df4372..eaf227e 100644 --- a/scripts/infiniteScroll.js +++ b/scripts/infiniteScroll.js @@ -225,7 +225,6 @@ for (const match of hashMatches) { const pageFromHash = match.replace('#/', ''); if (SUPPORTED_PAGES.includes(pageFromHash)) { - LOG('Found supported page:', pageFromHash); return pageFromHash; } } @@ -388,9 +387,9 @@ let activeTab = null; if (page === 'tv.html' || page === 'tv') { - activeTab = document.querySelector("#seriesTab.is-active"); + activeTab = libraryPage.querySelector("#seriesTab.is-active"); } else if (page === 'movies.html' || page === 'movies') { - activeTab = document.querySelector("#moviesTab.is-active"); + activeTab = libraryPage.querySelector("#moviesTab.is-active"); } if (!activeTab) { @@ -749,9 +748,9 @@ // Double-check that we have the correct active tab let activeTab = null; - if (page === 'tv.html') { + if (page === 'tv.html' || page === 'tv') { activeTab = document.querySelector("#seriesTab.is-active"); - } else if (page === 'movies.html') { + } else if (page === 'movies.html' || page === 'movies') { activeTab = document.querySelector("#moviesTab.is-active"); }