diff options
| author | Danny Lin <danny@kdrag0n.dev> | 2021-01-30 20:01:59 -0800 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-31 00:10:26 -0500 |
| commit | d44bafb8cfb4fee890b9b68b7e5f03ff82414b6b (patch) | |
| tree | 5ec4676ad3411902b9b83445c76e9429b977e26d /static/install | |
| parent | cdafb40dd61b5075b516d73e8cd8330f569d9776 (diff) | |
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.
Diffstat (limited to 'static/install')
| -rw-r--r-- | static/install/web.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/install/web.html b/static/install/web.html index 21c6f2b1..14ff279d 100644 --- a/static/install/web.html +++ b/static/install/web.html @@ -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"> |
