Merge pull request #1349 from keepassxreboot/fix/ignore_prereleases

Ignore prereleases on update check
This commit is contained in:
Sami Vänttinen 2021-06-13 13:48:47 +03:00 committed by GitHub
commit 71491d9e98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -975,7 +975,7 @@ keepass.checkForNewKeePassXCVersion = function() {
xhr.onload = function(e) {
if (xhr.readyState === 4 && xhr.status === 200) {
const json = JSON.parse(xhr.responseText);
if (json.tag_name) {
if (json.tag_name && json.prerelease === false) {
version = json.tag_name;
keepass.latestKeePassXC.version = version;
}