summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));