Fix Library infinite scroll on 10.11.x

This commit is contained in:
HighImKevin committed 2026-01-28 17:18:42 -05:00
1 parent 96e87e4513
commit 3efb4ab9fd
1 file changed
+4 -5
+4 -5
View File
@@ -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");
}