diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index bdae70ee4..46a619c66 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -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( - "
  • " + - v.name + - " " + - localVersion + - '· Update available!
  • ' - ); - } else { - $("#versions").append("
  • " + v.name + " " + localVersion + "
  • "); - } - } - }); + if (updateAvailable) { + $("#versions").append( + "
  • " + + v.name + + " " + + localVersion + + '· Update available!
  • ' + ); + } else { + $("#versions").append("
  • " + v.name + " " + localVersion + "
  • "); + } + }}); if (dockerUpdate) $("update-hint").html(