Skip to content

Commit

Permalink
fix: Tabs
Browse files Browse the repository at this point in the history
Update response.dev.js
  • Loading branch information
VirgilClyne committed Dec 27, 2024
1 parent 55a4391 commit 18a8b27
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/response.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,23 @@ Console.info(`FORMAT: ${FORMAT}`);
newTabs.push(tab);
break;
case "Store":
if (Version >= 54) {
if (Version >= 74) {
tab.destinationType = "Target";
tab.target = { id: "tahoma_store", type: "Root", url: "https://tv.apple.com/store" };
tab.universalLinks = ["https://tv.apple.com/store", "https://tv.apple.com/movies", "https://tv.apple.com/tv-shows"];
delete tab?.subTabs;
}
newTabs.push(tab);
/*
if (Version >= 74) {
tab.destinationType = "Target";
tab.target = { id: "tahoma_store", type: "Root", url: "https://tv.apple.com/store" };
tab.universalLinks = ["https://tv.apple.com/store", "https://tv.apple.com/movies", "https://tv.apple.com/tv-shows"];
delete tab?.subTabs;
}
*/
if (Version >= 54) newTabs.push(tab);
break;
case "Movies":
case "TV":
if (Version < 54) tab.secondaryEnabled = true;
if (Version < 54) newTabs.push(tab);
break;
case "MLS":
if (Version >= 64) {
if (Version >= 64)
switch (Platform) {
case "atv":
case "ipad":
Expand All @@ -131,7 +131,6 @@ Console.info(`FORMAT: ${FORMAT}`);
case "iphone":
return;
}
}
break;
case "Sports":
case "Kids":
Expand All @@ -156,7 +155,7 @@ Console.info(`FORMAT: ${FORMAT}`);
newTabs.push(tab);
break;
case "ChannelsAndApps":
if (Version >= 74) {
if (Version >= 74)
switch (Platform) {
case "atv":
case "ipad":
Expand All @@ -168,7 +167,6 @@ Console.info(`FORMAT: ${FORMAT}`);
default:
break;
}
}
break;
case "Library":
default:
Expand All @@ -177,7 +175,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
}
});
Console.debug(`newTabs: ${JSON.stringify(newTabs)}`);
Console.debug(`newTabs: ${JSON.stringify(newTabs, null, 2)}`);
body.data.applicationProps.tabs = newTabs;
/*
body.data.applicationProps.tabs = Configs.Tabs.map((tab, index) => {
Expand Down

0 comments on commit 18a8b27

Please sign in to comment.