diff options
| author | Adam Soltys <[email protected]> | 2023-12-01 15:17:58 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-01 15:17:58 -0800 |
| commit | cecb0a605c4c20d1e07ee3d31c9fcd2cbd7f1111 (patch) | |
| tree | fef443bc1f831c602b1fe4a763f993cdb293690b /src/components/About.svelte | |
| parent | f251736e0fb6980de3bcf3cf9e79986e001c6f14 (diff) | |
| download | coinos-ui-cecb0a605c4c20d1e07ee3d31c9fcd2cbd7f1111.tar.gz coinos-ui-cecb0a605c4c20d1e07ee3d31c9fcd2cbd7f1111.zip | |
optimizing
Diffstat (limited to 'src/components/About.svelte')
| -rw-r--r-- | src/components/About.svelte | 11 |
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'; |
