diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-14 07:12:39 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-03-14 08:35:51 +0100 |
commit | abc9c9b3f48b6eae4c44c44589f91a490ae9bb72 (patch) | |
tree | be8e26e9ad00094c9547a9eaa9786c5be3c4ad9e | |
parent | 8e0e3165807c5123148ba1b205854a723e3fc5c2 (diff) |
fix: route on hashchange
-rw-r--r-- | script.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ const LINKS = [ const content = document.getElementById('content'); route(); -// TODO: route on hashChange +window.addEventListener('hashchange', route); function route() { const latLon = parseLatLon(location.hash.slice(1)); |