aboutsummaryrefslogtreecommitdiff
path: root/static/js/refresh.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/refresh.ts')
-rw-r--r--static/js/refresh.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/refresh.ts b/static/js/refresh.ts
index 2a8a089..2b96751 100644
--- a/static/js/refresh.ts
+++ b/static/js/refresh.ts
@@ -16,8 +16,8 @@
function update() {
const url = self.location.href.split("#")[0].split("?")[0];
check(url, "HEAD", function (request) {
- const remote = request.getResponseHeader("last-modified") || local;
const local = document.querySelector('meta[name="last-modified"]').content;
+ const remote = request.getResponseHeader("last-modified") || local;
const modified = Date.parse(document.lastModified) !== Date.parse(remote);
const drift = Date.parse(remote) - Date.parse(local);