summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-03-14 07:12:39 +0100
committerMartin Fischer <martin@push-f.com>2025-03-14 08:35:51 +0100
commitabc9c9b3f48b6eae4c44c44589f91a490ae9bb72 (patch)
treebe8e26e9ad00094c9547a9eaa9786c5be3c4ad9e
parent8e0e3165807c5123148ba1b205854a723e3fc5c2 (diff)
fix: route on hashchange
-rw-r--r--script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/script.js b/script.js
index 9472e55..54bea94 100644
--- a/script.js
+++ b/script.js
@@ -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));