Fix new version popup on first visit
This commit is contained in:
parent
697e177e13
commit
c9ba59e895
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue