1
0
Fork 0
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:
dkanada 2020-09-12 09:12:40 +09:00
parent 4553215841
commit 982ae411c5
5 changed files with 23 additions and 14 deletions

View file

@ -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;