Skip to content

Commit

Permalink
Fixed http status check.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMueller2003 committed Dec 27, 2024
1 parent 8438847 commit f066ea3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit f066ea3

Please sign in to comment.