fix lifetime of downloadItem class when defaultdownload canceled
This commit is contained in:
parent
045e42a10c
commit
2819af9586
6 changed files with 100 additions and 27 deletions
|
@ -60,7 +60,8 @@ The following events are available on instances of `Session`:
|
|||
|
||||
Emitted when Electron is about to download `item` in `webContents`.
|
||||
|
||||
Calling `event.preventDefault()` will cancel the download.
|
||||
Calling `event.preventDefault()` will cancel the download and `item` will not be
|
||||
available from next tick of the process.
|
||||
|
||||
```javascript
|
||||
session.defaultSession.on('will-download', function(event, item, webContents) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue