forked from MapComplete/MapComplete
Re-enable cache server
This commit is contained in:
parent
7d313fedf8
commit
2526bc15bf
5 changed files with 13 additions and 5 deletions
|
@ -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(0),
|
||||
Utils.downloadJson<{layers}>("https://" + host + "/summary/status.json"),
|
||||
timeout(2500),
|
||||
])
|
||||
return new Set<string>(status.layers)
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue