You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: