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 | 9a1cbd040ead975d51f23f9546ba8d8bf9034207 (patch) | |
| tree | fef443bc1f831c602b1fe4a763f993cdb293690b /src/components/About.svelte | |
| parent | da8cbb695c9516130ba6ed8f14b922f260d2f0c6 (diff) | |
| download | coinos-ui-9a1cbd040ead975d51f23f9546ba8d8bf9034207.tar.gz coinos-ui-9a1cbd040ead975d51f23f9546ba8d8bf9034207.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'; |
