X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/31109c4698b3bf0368d139b3edacd2235bc30853..HEAD:/src/components/LastUpdated.svelte diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index f03e8cd..0d7768d 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -12,7 +12,7 @@ last_api_request_url = url; if (last_api_request_url) { - last_api_request_url = new URL(last_api_request_url); + last_api_request_url = new URL(last_api_request_url, window.location.origin); last_api_request_url.searchParams.delete('polygon_geojson'); last_api_request_url = last_api_request_url.toString(); } @@ -48,7 +48,7 @@
-
+
Loading data from API ...
@@ -62,10 +62,12 @@
{/if}
-
+
{#if last_updated_date} Data last updated: - {timeago.format(new Date(last_updated_date))} + + {timeago.format(new Date(last_updated_date))} + {/if} (Details)