Save the tab param to the URL at runtime

This commit is contained in:
Bnyro
2023-01-26 19:43:07 +01:00
parent d7ba61ebbc
commit 7f72485a04
2 changed files with 15 additions and 0 deletions

View File

@@ -224,10 +224,13 @@ export default {
},
loadTab(index) {
this.selectedTab = index;
this.appendQueryToUrl("tab", this.tabs[index].name ?? "videos");
if (index == 0) {
this.contentItems = this.channel.relatedStreams;
return;
}
if (this.tabs[index].content) {
this.contentItems = this.tabs[index].content;
return;