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

Cannot read property 'getType' of null at getWindowFromWebContents #150

Open
ym13349140 opened this issue Apr 17, 2022 · 0 comments
Open

Comments

@ym13349140
Copy link

ym13349140 commented Apr 17, 2022

Hi! @sindresorhus I'm using [email protected] in my project.
I have a problem. When my computer is offline, the downloadItem always triggers onStared event after a few seconds, during this time, the downloadItem is not available yet, if I close the download window before onStared is triggered, then I will get an error Cannot read property 'getType' of null at getWindowFromWebContents. even though the download window is destroyed, the download event doesn't stopped at all, it's still running in the main process, then caused this error.
So, how can I solve this problem? Is there any ways to force the download event stop when I close my window before onStarted triggered?

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

No branches or pull requests

1 participant