diff --git a/justfile b/justfile index d9b97cc..db62a10 100644 --- a/justfile +++ b/justfile @@ -24,3 +24,4 @@ fmt: init: yarn --cwd ./web-frontend/ cargo fetch + cargo install wasm-pack diff --git a/web-frontend/src/routes/+page.svelte b/web-frontend/src/routes/+page.svelte index 3bc80d7..8312dee 100644 --- a/web-frontend/src/routes/+page.svelte +++ b/web-frontend/src/routes/+page.svelte @@ -10,10 +10,6 @@ let lon = ''; let addr = ''; - init().then(() => { - console.log('Initialized'); - }); - onMount(async () => { if (browser) { const leaflet = await import('leaflet'); @@ -53,6 +49,17 @@

Welcome to SvelteKit

+

+ Status: + {#await init()} + Setting up wasm... + {:then} + Ready + {:catch e} + {e} + {/await} +

+

Current cursor: {addr} => ({lat}, {lon})