diff options
author | tdro <tdro@noreply.example.com> | 2023-04-10 14:14:10 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-04-10 14:14:10 -0400 |
commit | 7c8233d964507ab9b37706f066f7744dde744c99 (patch) | |
tree | 06007d49acde97b8a9700f0e0991cac00a9fa72e /static | |
parent | 242e7870c809e1a89cc00aa4caa8f6e0ca8f065f (diff) | |
download | canory-7c8233d964507ab9b37706f066f7744dde744c99.tar.gz canory-7c8233d964507ab9b37706f066f7744dde744c99.tar.bz2 canory-7c8233d964507ab9b37706f066f7744dde744c99.zip |
static/js/refresh: Drop # & ?
To bypass browser behaviour
Diffstat (limited to 'static')
-rw-r--r-- | static/js/refresh.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |