From 27b113efba642de8f071868df3c743a9904a26b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Sun, 22 Nov 2020 16:54:24 +0100 Subject: [PATCH] Fix lints --- src/scripts/clientUtils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scripts/clientUtils.js b/src/scripts/clientUtils.js index f94045d5d2..5ac27a68d6 100644 --- a/src/scripts/clientUtils.js +++ b/src/scripts/clientUtils.js @@ -32,7 +32,7 @@ export async function serverAddress() { if (window.location.href.indexOf('/web/') !== -1) { // Do we polyfill String.prototype.includes? const split = window.location.href.split('/web/'); - for (let i=split.length - 1; i ; i--) { + for (let i = split.length - 1; i ; i--) { urls.push(split.slice(0, i).join('/web/')); } } @@ -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);