Change update link if beta version

pull/449/head
Luke Prior 2021-04-20 16:17:53 +10:00 zatwierdzone przez GitHub
rodzic f09e4b57be
commit 3c1c23a69b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -79,7 +79,11 @@
} else if (data.latest == "Unknown"){
//pass
} else {
$("#footertext").html("Update Available: <a href='https://github.com/projecthorus/radiosonde_auto_rx/releases' target='_blank'>" + data.latest + "</a>");
if (data.latest.includes("-beta")) {
$("#footertext").html("Update Available: <a href='https://github.com/projecthorus/radiosonde_auto_rx/commits/testing' target='_blank'>" + data.latest + "</a>");
} else {
$("#footertext").html("Update Available: <a href='https://github.com/projecthorus/radiosonde_auto_rx/releases' target='_blank'>" + data.latest + "</a>");
}
}
}
});