docs: update webpages for version v1.3.37

This commit is contained in:
Manuel Weiser 2025-02-22 11:13:40 +01:00
parent 55db6d76ab
commit b8db01529b
2 changed files with 14 additions and 7 deletions

View File

@ -202,6 +202,16 @@
let response = this.responseText;
try {
const jsonResponse = JSON.parse(response);
// Handle progress updates
if (jsonResponse.progress !== undefined) {
const percent = jsonResponse.progress;
progress.style.width = percent + '%';
progress.textContent = Math.round(percent) + '%';
return;
}
// Handle success/error messages
response = jsonResponse.message;
if (jsonResponse.restart) {
@ -218,12 +228,9 @@
}, 1000);
}
} catch (e) {
if (!isNaN(response)) {
const percent = parseInt(response);
progress.style.width = percent + '%';
progress.textContent = percent + '%';
return;
}
console.error('JSON parse error:', e);
status.textContent = 'Update failed: Invalid response from server';
status.classList.add('error');
}
status.textContent = response;

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html
[common]
version = "1.3.36"
version = "1.3.37"
#test