Don't show update notification if already on changelog page (#1554)

This commit is contained in:
Otto Winter 2021-10-23 16:57:16 +02:00 committed by GitHub
parent bdf1e65eaf
commit 92eb7fbe85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
</div>
<script>
var old = window.localStorage.getItem("version");
if (old === null) { window.localStorage.setItem("version", "{{ version }}");
if (old === null || window.location.pathname.lastIndexOf("/changelog/", 0) === 0) { window.localStorage.setItem("version", "{{ version }}");
} else if (old !== "{{ version }}") {
const footerEl = document.getElementById("upgrade-footer");
footerEl.classList.add("not-hidden");