fix: delay web OTA redirect until server is ready

This commit is contained in:
Jared Dohrman committed 2026-05-24 18:03:21 +10:00
1 parent 3ffd0e8beb
commit 12435cfef0
1 file changed
+3 -1
+3 -1
View File
@@ -2683,7 +2683,9 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
const result = await runCommand("start ota");
const match = result.text && result.text.match(/https?:\/\/\S+/);
if (result.ok && match) {
window.location.href = match[0];
window.setTimeout(() => {
window.location.href = match[0];
}, 5000);
} else {
otaBtn.disabled = false;
}