summaryrefslogtreecommitdiff
path: root/static/js/reload.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-07-17 17:19:59 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-07-17 17:19:59 +0200
commit418256cc34602853f206bb0b5a92710806b54e9d (patch)
tree19a3351a3fa658b562932133020688347757fee3 /static/js/reload.js
parent98ee59426ce5b96e98eae28b448a7a533e3dba68 (diff)
fix auto-reload for hash urls
Diffstat (limited to 'static/js/reload.js')
-rw-r--r--static/js/reload.js2
1 files changed, 1 insertions, 1 deletions
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 {