Server is currently down

This commit is contained in:
Pieter Vander Vennet 2024-03-28 19:54:07 +01:00
parent 4c2ffdb4cf
commit afd39912fd
2 changed files with 4 additions and 4 deletions

View file

@ -30,8 +30,8 @@ async function getAvailableLayers(): Promise<Set<string>> {
try {
const host = new URL(Constants.VectorTileServer).host
const status: { layers: string[] } = await Promise.any([
Utils.downloadJson("https://" + host + "/summary/status.json"),
timeout(5000)
// Utils.downloadJson("https://" + host + "/summary/status.json"),
timeout(0)
])
return new Set<string>(status.layers)
} catch (e) {

View file

@ -29,8 +29,8 @@ async function getAvailableLayers(): Promise<Set<string>> {
try {
const host = new URL(Constants.VectorTileServer).host
const status = await Promise.any([
Utils.downloadJson("https://" + host + "/summary/status.json"),
timeout(5000)
// Utils.downloadJson("https://" + host + "/summary/status.json"),
timeout(0)
])
return new Set<string>(status.layers)
} catch (e) {