mirror of
https://github.com/pi-hole/web.git
synced 2026-04-17 23:54:10 +01:00
Apply suggestion from @rdwebdesign
Show the link if the version matches a date based tag Co-authored-by: RD WebDesign <github@rdwebdesign.com.br> Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -537,8 +537,8 @@ function updateVersionInfo() {
|
||||
// Display update information for the docker tag
|
||||
updateComponentAvailable = true;
|
||||
dockerUpdate = true;
|
||||
} else if (v.local !== "nightly") {
|
||||
// Display the link for the current tag if not nightly
|
||||
} else if (/^\d{4}\.\d{2}\.\d+/.test(v.local)) {
|
||||
// Display the link if the current tag is a normal date-based tag
|
||||
localVersion =
|
||||
'<a href="' +
|
||||
v.url +
|
||||
|
||||
Reference in New Issue
Block a user