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?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too