diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 83e3362..3a729b5 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -15,7 +15,11 @@ finalSelect = true; } - const hash = window.location.hash.substr(1); + // react to hash changes + let hash = window.location.hash.substr(1); + window.onhashchange = () => { + hash = window.location.hash.substr(1); + }