fix upgradeable for release version

This commit is contained in:
MichaelDvP
2024-10-30 16:50:48 +01:00
parent 3dd67acc8d
commit e28794c77a
2 changed files with 8 additions and 2 deletions

View File

@@ -59,6 +59,10 @@ const Version = () => {
// uncomment next 2 lines for testing, uses https://github.com/emsesp/EMS-ESP32/releases/download/v3.6.5/EMS-ESP-3_6_5-ESP32-16MB+.bin
// immediate: false,
// initialData: '3.6.5'
}).onSuccess((event) => {
if (!useDev) {
void sendCheckUpgrade(event.data);
}
});
// called immediately to get the latest version, on page load, then check for upgrade (works for both dev and stable)
@@ -67,7 +71,9 @@ const Version = () => {
// immediate: false,
// initialData: '3.7.0-dev.32'
}).onSuccess((event) => {
void sendCheckUpgrade(event.data);
if (useDev) {
void sendCheckUpgrade(event.data);
}
});
const STABLE_URL = 'https://github.com/emsesp/EMS-ESP32/releases/download/';