mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-02 23:59:52 -04:00
Parse without regex and change 'let' to 'const'
This commit is contained in:
parent
4ae35c86f2
commit
25d7f3ed1c
2 changed files with 10 additions and 8 deletions
|
@ -142,11 +142,12 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
if ("{{CAN_UPGRADE}}" === "True" && !localStorage.getItem("bannerDismissed")) {
|
||||
let upgradeVersionTag = "{{VERSION_RELEASES.upgrade_version.tag_name}}"
|
||||
{% if user.is_authenticated and CAN_UPGRADE %}
|
||||
if (!localStorage.getItem("bannerDismissed")) {
|
||||
const upgradeVersionTag = "{{VERSION_RELEASES.upgrade_version.tag_name}}"
|
||||
const upgradeVersionURL = "{{VERSION_RELEASES.upgrade_version.html_url}}"
|
||||
let currentVersionTag = "{{VERSION}}"
|
||||
let currentVersionURL = "{{VERSION_RELEASES.current_version.html_url}}"
|
||||
const currentVersionTag = "{{VERSION}}"
|
||||
const currentVersionURL = "{{VERSION_RELEASES.current_version.html_url}}"
|
||||
|
||||
createBanner(currentVersionTag, currentVersionURL, upgradeVersionTag, upgradeVersionURL)
|
||||
}
|
||||
|
@ -174,6 +175,7 @@
|
|||
banner.style.display = "none"
|
||||
localStorage.setItem("bannerDismissed", "true")
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
$ = django.jQuery;
|
||||
$.fn.reverse = [].reverse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue