Fix-LiveTV-Default Tab index

This commit is contained in:
grafixeyehero 2021-11-07 00:48:20 +03:00
parent 3a243aae1d
commit 866c58212c

View File

@ -200,11 +200,20 @@ function setScrollClasses(elem, scrollX) {
}
function getDefaultTabIndex(folderId) {
if (userSettings.get('landing-' + folderId) === 'guide') {
return 1;
switch (userSettings.get('landing-' + folderId)) {
case 'guide':
return 1;
case 'channels':
return 2;
case 'recordings':
return 3;
case 'schedule':
return 4;
case 'series':
return 5;
default:
return 0;
}
return 0;
}
export default function (view, params) {