forked from MapComplete/MapComplete
Server is currently down
This commit is contained in:
parent
4c2ffdb4cf
commit
afd39912fd
2 changed files with 4 additions and 4 deletions
|
@ -30,8 +30,8 @@ async function getAvailableLayers(): Promise<Set<string>> {
|
||||||
try {
|
try {
|
||||||
const host = new URL(Constants.VectorTileServer).host
|
const host = new URL(Constants.VectorTileServer).host
|
||||||
const status: { layers: string[] } = await Promise.any([
|
const status: { layers: string[] } = await Promise.any([
|
||||||
Utils.downloadJson("https://" + host + "/summary/status.json"),
|
// Utils.downloadJson("https://" + host + "/summary/status.json"),
|
||||||
timeout(5000)
|
timeout(0)
|
||||||
])
|
])
|
||||||
return new Set<string>(status.layers)
|
return new Set<string>(status.layers)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -29,8 +29,8 @@ async function getAvailableLayers(): Promise<Set<string>> {
|
||||||
try {
|
try {
|
||||||
const host = new URL(Constants.VectorTileServer).host
|
const host = new URL(Constants.VectorTileServer).host
|
||||||
const status = await Promise.any([
|
const status = await Promise.any([
|
||||||
Utils.downloadJson("https://" + host + "/summary/status.json"),
|
// Utils.downloadJson("https://" + host + "/summary/status.json"),
|
||||||
timeout(5000)
|
timeout(0)
|
||||||
])
|
])
|
||||||
return new Set<string>(status.layers)
|
return new Set<string>(status.layers)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue