frontend: react to hash changes

This commit is contained in:
Vašek Šraier 2020-09-28 13:56:43 +02:00
parent 7298fea65d
commit db83b1cb02

View file

@ -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);
}
</script>
<style>