fix issue with multiple entries in server array

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
dkanada 2020-10-30 22:14:45 +09:00 committed by GitHub
parent b76f5a0a0f
commit 69439bbff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 => {