Prevent Watchlist from using CustomTabs plugin on Jellyfin v12+

This commit is contained in:
HighImKevin committed 2026-09-10 18:46:03 -04:00
1 parent 2b51c335bf
commit 50450af680
1 file changed
+4 -1
+4 -1
View File
@@ -7276,8 +7276,11 @@ In the Custom Tabs plugin, add a new tab with the following HTML content:
let watchlistUrl = '#/watchlist';
// Major version of Jellyfin
const jellyfinVersion = window.KefinTweaks.getJellyfinMajorVersion() ?? null;
// If watchlist tab index is null or undefined, add to top navigation
if (watchlistTabIndex === null || watchlistTabIndex === undefined) {
if (watchlistTabIndex === null || watchlistTabIndex === undefined || jellyfinVersion >= 12) {
options.topNavigation = 'main';
} else {
watchlistUrl = `#/home?tab=${watchlistTabIndex}`;