mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Update version check get changelogs
This commit is contained in:
parent
eb36a0b3dd
commit
9345cb3934
@ -69,9 +69,10 @@ export async function checkForUpdate() {
|
|||||||
|
|
||||||
const latestVersion = releases[0]
|
const latestVersion = releases[0]
|
||||||
const currentVersionMinor = currentVersion.minor
|
const currentVersionMinor = currentVersion.minor
|
||||||
|
const currentVersionMajor = currentVersion.major
|
||||||
// Show all releases with the same minor version and lower or equal total version
|
// Show all releases with the same minor version and lower or equal total version
|
||||||
const releasesToShow = releases.filter((release) => {
|
const releasesToShow = releases.filter((release) => {
|
||||||
return release.minor == currentVersionMinor && release.total <= currentVersion.total
|
return release.major == currentVersionMajor && release.minor == currentVersionMinor && release.total <= currentVersion.total
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user