From abc9c9b3f48b6eae4c44c44589f91a490ae9bb72 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 14 Mar 2025 07:12:39 +0100 Subject: fix: route on hashchange --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3