-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add download progress example #25
base: master
Are you sure you want to change the base?
Conversation
@AuHau I see the header |
<input id="reference" type="text" placeholder="Reference" required size="64"> | ||
<input id="download" type="submit" value="Download!"> | ||
</form> | ||
|
||
<br><br> | ||
Logging progress: | ||
<div id="content"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div id="content"> | |
<div id="logs"> |
e.total = e.target.getResponseHeader('decompressed-content-length') | ||
progressCb(e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an assignment to private variable.
e.total = e.target.getResponseHeader('decompressed-content-length') | |
progressCb(e) | |
progressCb({...e, total: e.target.getResponseHeader('decompressed-content-length')}) |
No description provided.