Skip to content

Commit

Permalink
Close at the right place
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
yubiuser committed Oct 11, 2023
1 parent 5cd83cf commit fc542f5
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions scripts/pi-hole/js/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,30 +514,29 @@ function updateVersionInfo() {
if (versionCompare(v.local, v.remote) === -1) {
// Update available
updateAvailable = true;
} else {
// non-master branch
localVersion = "vDev (" + v.branch + ", " + v.hash + ")";
if (v.hash != v.hash_remote) {
// hash differ > Update available
updateAvailable = true;
}
}
} else {
// non-master branch
localVersion = "vDev (" + v.branch + ", " + v.hash + ")";
if (v.hash != v.hash_remote) {
// hash differ > Update available
updateAvailable = true;
}
}
if (updateAvailable) {
$("#versions").append(
"<li><strong>" +
v.name +
"</strong> " +
localVersion +
'&middot; <a class="lookatme" lookatme-text="Update available!" href="' +
v.url +
'" rel="noopener" target="_blank">Update available!</a></li>'
);
} else {
$("#versions").append("<li><strong>" + v.name + "</strong> " + localVersion + "</li>");
}
}
});
if (updateAvailable) {
$("#versions").append(
"<li><strong>" +
v.name +
"</strong> " +
localVersion +
'&middot; <a class="lookatme" lookatme-text="Update available!" href="' +
v.url +
'" rel="noopener" target="_blank">Update available!</a></li>'
);
} else {
$("#versions").append("<li><strong>" + v.name + "</strong> " + localVersion + "</li>");
}
}});

if (dockerUpdate)
$("update-hint").html(
Expand Down

0 comments on commit fc542f5

Please sign in to comment.