diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-17 17:19:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-17 17:19:59 +0200 |
commit | 418256cc34602853f206bb0b5a92710806b54e9d (patch) | |
tree | 19a3351a3fa658b562932133020688347757fee3 /static/js/reload.js | |
parent | 98ee59426ce5b96e98eae28b448a7a533e3dba68 (diff) |
fix auto-reload for hash urls
Diffstat (limited to 'static/js/reload.js')
-rw-r--r-- | static/js/reload.js | 2 |
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 { |