mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lints
This commit is contained in:
parent
32eb96467f
commit
27b113efba
1 changed files with 5 additions and 5 deletions
|
@ -45,13 +45,13 @@ export async function serverAddress() {
|
|||
|
||||
urls.push(...await webSettings.getServers());
|
||||
|
||||
console.log("URL candidates:", urls);
|
||||
console.log('URL candidates:', urls);
|
||||
|
||||
const promises = urls.map(url => {
|
||||
return fetch(`${url}/System/Info/Public`).then(resp => {
|
||||
return {
|
||||
url: url,
|
||||
response: resp,
|
||||
response: resp
|
||||
};
|
||||
}).catch(error => {
|
||||
return Promise.resolve();
|
||||
|
@ -63,8 +63,8 @@ export async function serverAddress() {
|
|||
return Promise.all(responses.map(obj => {
|
||||
return {
|
||||
url: obj.url,
|
||||
config: obj.response.json(),
|
||||
}
|
||||
config: obj.response.json()
|
||||
};
|
||||
}));
|
||||
}).then(configs => {
|
||||
let selection = configs.find(obj => !obj.config.StartupWizardCompleted);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue