From f066ea3c58b485b8d3c1c96512382ae2845af096 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 27 Dec 2024 15:21:31 -0500 Subject: [PATCH] Fixed http status check. --- html/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index aa4d05ba3..dfff51ba1 100644 --- a/html/script.js +++ b/html/script.js @@ -241,13 +241,15 @@ $(function () { _("EfuProgressBar").value = 0; //will clear progress bar after successful upload $("#EfuProgressBar").addClass("hidden"); - if(event.target.status === '200') + if(event.target.status === 200) { + alert("Firmware Upload SUCCESS!"); showReboot(); } else { alert("Firmware Upload FAILED!\n" + event.target.response); + showReboot(); } }