Fix new version popup on first visit

This commit is contained in:
shortcutme 2017-01-27 12:09:23 +01:00
parent 697e177e13
commit c9ba59e895
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -424,7 +424,7 @@ class Wrapper
if site_info.content
window.document.title = site_info.content.title+" - ZeroNet"
@log "Required file done, setting title to", window.document.title
if not $(".loadingscreen").length # Loading screen already removed (loaded +2sec)
if not window.show_loadingscreen
@notifications.add("modified", "info", "New version of this page has just released.<br>Reload to see the modified content.")
# File failed downloading
else if site_info.event[0] == "file_failed"

View file

@ -1370,7 +1370,7 @@ jQuery.extend( jQuery.easing,
window.document.title = site_info.content.title + " - ZeroNet";
this.log("Required file done, setting title to", window.document.title);
}
if (!$(".loadingscreen").length) {
if (!window.show_loadingscreen) {
this.notifications.add("modified", "info", "New version of this page has just released.<br>Reload to see the modified content.");
}
}