From 69439bbff0d91a4162288fd3bf3beacf7ca8d397 Mon Sep 17 00:00:00 2001 From: dkanada Date: Fri, 30 Oct 2020 22:14:45 +0900 Subject: [PATCH] fix issue with multiple entries in server array Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/scripts/clientUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/clientUtils.js b/src/scripts/clientUtils.js index 0b31727cc..986507171 100644 --- a/src/scripts/clientUtils.js +++ b/src/scripts/clientUtils.js @@ -23,7 +23,7 @@ export async function serverAddress() { const urls = []; urls.push(window.location.origin); urls.push(`${window.location.protocol}//${window.location.hostname}:8096`); - urls.push(await webSettings.getServers()); + urls.push(...await webSettings.getServers()); const promises = urls.map(url => { return fetch(`${url}/System/Info/Public`).catch(error => {