]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/App.svelte
use Svelte (HTML) style comments, // shows up on screen
[nominatim-ui.git] / src / App.svelte
index e543afd471564dfe7cc591a0dd1ea0de05c724f9..54cad5ddad2e59a75151ae5da1a59310b9d2af68 100644 (file)
@@ -18,6 +18,9 @@
   refresh_page();
 </script>
 
+<!-- deal with back-button and other user action -->
+<svelte:window on:popstate={refresh_page} />
+
 <Header/>
 {#if view === 'search'}
 <SearchPage />