diff options
Diffstat (limited to 'assets/js/index.js')
-rw-r--r-- | assets/js/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/js/index.js b/assets/js/index.js index 0d15055..98b53d2 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -81,9 +81,9 @@ check(url, "HEAD", function(request) { const local = document.querySelector('meta[name="last-modified"]').content; const remote = request.getResponseHeader("last-modified") || local; - const localHour = local.substring(0, local.length - 9); - const remoteHour = remote.substring(0, remote.length - 9); - const modified = localHour !== remoteHour; + const localSecond = local.substring(0, local.length - 5); + const remoteSecond = remote.substring(0, remote.length - 5); + const modified = localSecond !== remoteSecond; if (modified) { const indicator = document.querySelector("a[data-update]"); check(url, "GET"); |