From: Sarah Hoffmann Date: Fri, 5 Feb 2021 22:32:44 +0000 (+0100) Subject: use svelte syntax for setting the popstate handler X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/c597ebf61d244dda966f8cc06799d897172fce84 use svelte syntax for setting the popstate handler --- diff --git a/src/App.svelte b/src/App.svelte index e543afd..3e64b16 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -18,6 +18,9 @@ refresh_page(); +// deal with back-button and other user action + +
{#if view === 'search'} diff --git a/src/main.js b/src/main.js index f045059..a8269c6 100644 --- a/src/main.js +++ b/src/main.js @@ -41,8 +41,3 @@ document.addEventListener('click', function (e) { } } }); - -// deal with back-button and other user action -window.onpopstate = function () { - refresh_page(); -};