Skip to content

Commit

Permalink
Merge pull request #107 from Kevinjil/fix/configuration-tabs
Browse files Browse the repository at this point in the history
Use correct href format for configuration tabs
  • Loading branch information
Kevinjil authored May 21, 2024
2 parents af2fc48 + 8157263 commit e0f6c96
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Jellyfin.Xtream/Configuration/Web/Xtream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const url = (name) =>
ApiClient.getUrl("web/ConfigurationPage", {
ApiClient.getUrl("configurationpage", {
name,
});
const tab = (name) => '/configurationpage?name=' + name + '.html';

$(document).ready(() => {
const style = document.createElement('link');
Expand Down Expand Up @@ -186,23 +187,23 @@ const filter = (obj, predicate) => Object.keys(obj)

const tabs = [
{
href: url('XtreamCredentials.html'),
href: tab('XtreamCredentials'),
name: 'Credentials'
},
{
href: url('XtreamLive.html'),
href: tab('XtreamLive'),
name: 'Live TV'
},
{
href: url('XtreamLiveOverrides.html'),
href: tab('XtreamLiveOverrides'),
name: 'TV overrides'
},
{
href: url('XtreamVod.html'),
href: tab('XtreamVod'),
name: 'Video On-Demand',
},
{
href: url('XtreamSeries.html'),
href: tab('XtreamSeries'),
name: 'Series',
},
];
Expand Down

0 comments on commit e0f6c96

Please sign in to comment.