From 418256cc34602853f206bb0b5a92710806b54e9d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 17 Jul 2022 17:19:59 +0200 Subject: fix auto-reload for hash urls --- static/js/reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/reload.js b/static/js/reload.js index 0f167f1..711e95e 100644 --- a/static/js/reload.js +++ b/static/js/reload.js @@ -32,7 +32,7 @@ document.addEventListener("DOMContentLoaded", function() { }; const fetchDepartures = () => { - var fetchUrl = window.location.href; + var fetchUrl = window.location.href.split('#')[0]; if (fetchUrl.includes("?")) { fetchUrl += "&ajax=1"; } else { -- cgit v1.2.3