Skip to content
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

Add onCompleted and onTotalProgress options #130

Merged
merged 7 commits into from
Feb 26, 2021
Merged

Add onCompleted and onTotalProgress options #130

merged 7 commits into from
Feb 26, 2021

Conversation

paviro
Copy link
Contributor

@paviro paviro commented Feb 11, 2021

I am using electron-dl with electronDl(); and win.webContents.downloadURL(url); and needed a way to get the total progress of all download files and a callback when a file is finished to display a notification.

I am not 100% certain this is the best way to solve this problem so feel free to close this pull request but I think it might be useful for other people as well and it fixes #110.

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@paviro
Copy link
Contributor Author

paviro commented Feb 12, 2021

Thank you for the feedback! Will resolve it later today :)

paviro and others added 4 commits February 12, 2021 13:04
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
@sindresorhus sindresorhus changed the title Added onCompleted and onTotalProgress Add onCompleted and onTotalProgress options Feb 26, 2021
@sindresorhus sindresorhus merged commit bd55e77 into sindresorhus:main Feb 26, 2021
@paviro
Copy link
Contributor Author

paviro commented Feb 28, 2021

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Suggestion] Add event when progress completes
2 participants