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 6b1fa04
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/response.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ 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":
Expand Down Expand Up @@ -177,7 +177,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 6b1fa04

Please sign in to comment.