mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix upgradeable for release version
This commit is contained in:
@@ -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/';
|
||||
|
||||
Reference in New Issue
Block a user