From 12435cfef0a96d54b15553d55c2ecb27c5efa062 Mon Sep 17 00:00:00 2001 From: Jared Dohrman Date: Sun, 24 May 2026 18:03:21 +1000 Subject: [PATCH] fix: delay web OTA redirect until server is ready --- src/helpers/web/WebPanelServer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helpers/web/WebPanelServer.cpp b/src/helpers/web/WebPanelServer.cpp index c87e7abc..2a9e11b4 100644 --- a/src/helpers/web/WebPanelServer.cpp +++ b/src/helpers/web/WebPanelServer.cpp @@ -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; }