chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2023-10-30 13:44:27 +01:00
parent a0218253ce
commit 9ee3343426
154 changed files with 5959 additions and 3840 deletions

View file

@ -673,20 +673,14 @@ class SvgToPdfPage {
public async PrepareLanguage(language: string) {
let host = window.location.host
if(host.startsWith("127.0.0.1")){
if (host.startsWith("127.0.0.1")) {
host = "mapcomplete.org"
}
// Always fetch the remote data - it's cached anyway
this.layerTranslations[language] = await Utils.downloadJsonCached(
window.location.protocol +
"//" +
host +
"/assets/langs/layers/" +
language +
".json",
window.location.protocol + "//" + host + "/assets/langs/layers/" + language + ".json",
24 * 60 * 60 * 1000
)
}
public async Prepare() {