Skip to content

Commit

Permalink
always show highest version
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Jun 14, 2022
1 parent 734900c commit 50cb838
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@
showCurrentRelease(name, code)
}

var lastCode = null
function showCurrentRelease (name, code) {
if (lastCode != null && lastCode <= code) {
return
}
lastCode = code
const url = 'https://github.com/cvzi/ScreenshotTile/releases/tag/v' + name

document.querySelectorAll('.data_current_name').forEach((e) => (e.textContent = name))
Expand Down

0 comments on commit 50cb838

Please sign in to comment.