Browse Source

frontend: react to hash changes

mj-deploy
Vašek Šraier 4 years ago
parent
commit
db83b1cb02
  1. 6
      frontend/src/App.svelte

6
frontend/src/App.svelte

@ -15,7 +15,11 @@
finalSelect = true; 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);
}
</script> </script>
<style> <style>