Re-enable cache server

This commit is contained in:
Pieter Vander Vennet 2024-04-30 23:14:57 +02:00
parent 7d313fedf8
commit 2526bc15bf
5 changed files with 13 additions and 5 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(0),
Utils.downloadJson<{layers}>("https://" + host + "/summary/status.json"),
timeout(2500),
])
return new Set<string>(status.layers)
} catch (e) {