diff options
-rw-r--r-- | assets/js/index.js | 2 | ||||
-rw-r--r-- | static/js/refresh.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/index.js b/assets/js/index.js index 87cb4b1..0d15055 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -77,7 +77,7 @@ http.send(); } function update() { - const url = self.location.href; + const url = self.location.href.split("#")[0].split("?")[0]; check(url, "HEAD", function(request) { const local = document.querySelector('meta[name="last-modified"]').content; const remote = request.getResponseHeader("last-modified") || local; diff --git a/static/js/refresh.ts b/static/js/refresh.ts index 2033ea3..88710fa 100644 --- a/static/js/refresh.ts +++ b/static/js/refresh.ts @@ -13,7 +13,7 @@ } function update() { - const url = self.location.href; + const url = self.location.href.split("#")[0].split("?")[0]; check(url, "HEAD", function (request) { const local = document.querySelector('meta[name="last-modified"]').content; const remote = request.getResponseHeader("last-modified") || local; |