aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/About.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/About.svelte')
-rw-r--r--src/components/About.svelte11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/About.svelte b/src/components/About.svelte
index 4292b9fd..1dbd8038 100644
--- a/src/components/About.svelte
+++ b/src/components/About.svelte
@@ -1,5 +1,14 @@
<script>
- export let locations;
+ import { onMount } from "svelte";
+
+ let locations;
+ onMount(async () => {
+ try {
+ ({ locations } = await fetch("/locations").then((r) => r.json()));
+ } catch (e) {
+ console.log(e);
+ }
+ });
import { Image, Icon, LocationsMap } from '$comp';
import { t } from '$lib/translations';