mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix linting issues and add servers to web config
This commit is contained in:
parent
4553215841
commit
982ae411c5
5 changed files with 23 additions and 14 deletions
|
@ -46,6 +46,15 @@ export function getMultiServer() {
|
|||
});
|
||||
}
|
||||
|
||||
export function getServers() {
|
||||
return getConfig().then(config => {
|
||||
return config.servers;
|
||||
}).catch(error => {
|
||||
console.log('cannot get web config:', error);
|
||||
return [];
|
||||
});
|
||||
}
|
||||
|
||||
export function getThemes() {
|
||||
return getConfig().then(config => {
|
||||
return config.themes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue