diff --git a/scripts/downloadNsiLogos.ts b/scripts/downloadNsiLogos.ts index f817b6f098..da1e22bb3d 100644 --- a/scripts/downloadNsiLogos.ts +++ b/scripts/downloadNsiLogos.ts @@ -190,7 +190,6 @@ class DownloadNsiLogos extends Script { } async main(): Promise { - const nsi = await NameSuggestionIndex.getNsiIndex() const types = ["brand", "operator"] for (const type of types) { await this.downloadFor(type) diff --git a/src/Logic/Osm/OsmConnection.ts b/src/Logic/Osm/OsmConnection.ts index 2295c578ec..0d1f9c9892 100644 --- a/src/Logic/Osm/OsmConnection.ts +++ b/src/Logic/Osm/OsmConnection.ts @@ -640,6 +640,10 @@ export class OsmConnection { this.fetchCapabilities().then(({ api, gpx }) => { this.apiIsOnline.setData(api) this.gpxServiceIsOnline.setData(gpx) + }).catch(err => { + console.log("Could not reach the api:", err) + this.apiIsOnline.set("unreachable") + this.gpxServiceIsOnline.set("unreachable") }) } diff --git a/src/Logic/State/UserRelatedState.ts b/src/Logic/State/UserRelatedState.ts index 0b109e5acf..f58e66d4e1 100644 --- a/src/Logic/State/UserRelatedState.ts +++ b/src/Logic/State/UserRelatedState.ts @@ -419,6 +419,7 @@ export default class UserRelatedState { if(!Utils.runningFromConsole){ amendedPrefs.data["_host"] = window.location.host amendedPrefs.data["_path"] = window.location.pathname + amendedPrefs.data["_userAgent"] = navigator.userAgent } for (const key in Constants.userJourney) { diff --git a/src/UI/ThemeViewGUI.svelte b/src/UI/ThemeViewGUI.svelte index 1ffd31c500..bccb69ae17 100644 --- a/src/UI/ThemeViewGUI.svelte +++ b/src/UI/ThemeViewGUI.svelte @@ -421,7 +421,7 @@
Faking a user (Testmode)
- {#if $apiState !== "online"} + {#if $apiState !== "online" && $apiState !== "unknown"}
API is {$apiState}
{/if}