diff --git a/justfile b/justfile index 231a778..f935d59 100644 --- a/justfile +++ b/justfile @@ -38,7 +38,7 @@ docs-build: output-clean rust-watch: cargo watch -x fmt -x check -x build -js-dev: +js-dev: wasm-build yarn --cwd ./web-frontend/ dev fmt: diff --git a/web-frontend/src/lib/url.js b/web-frontend/src/lib/url.js index e5db0b2..967f5fb 100644 --- a/web-frontend/src/lib/url.js +++ b/web-frontend/src/lib/url.js @@ -33,7 +33,7 @@ export function createUrlStore(ssrUrl) { window.addEventListener('hashchange', updateHref); return { - subscribe: derived(href, ($href) => new URL($href)).subscribe, + subscribe: derived(href, ($href) => new URL($href)).subscribe }; } diff --git a/web-frontend/src/routes/+page.svelte b/web-frontend/src/routes/+page.svelte index 94fc259..1330f09 100644 --- a/web-frontend/src/routes/+page.svelte +++ b/web-frontend/src/routes/+page.svelte @@ -148,7 +148,11 @@ coordinateInputValue = addr.allCoordinates[selectedCoordinateType]; } - history.replaceStateNoNotification(undefined, undefined, `#${addr.address.replaceAll(' ', '-')}`); + history.replaceState( + undefined, + undefined, + `#${addr.address.replaceAll(' ', '-')}` + ); map.panTo(latlng, 20); leaflet.popup().setLatLng(latlng).setContent(`${addr.address}`).openOn(map);