web-install: Show download progress

Getting progress with the fetch() API is complicated and requires us to
stream the data and create the blob ourselves, so use XMLHttpRequest
instead to get live progress updates.
This commit is contained in:
Danny Lin
2021-01-30 20:01:59 -08:00
committed by Daniel Micay
parent cdafb40dd6
commit d44bafb8cf
2 changed files with 34 additions and 13 deletions

View File

@@ -163,7 +163,11 @@
<button id="download-release-button" disabled="disabled">Download release</button>
<p><strong id="download-release-status"></strong></p>
<p id="download-release-status-container" hidden="hidden">
<strong id="download-release-status"></strong>
<br/>
<progress id="download-release-progress" hidden="hidden" max="1" value="0"></progress>
</p>
</section>
<section id="flashing-factory-images">