Merge pull request #11428 from TechnicalSoup/patch-1
docs: specify string values for DownloadItem
This commit is contained in:
commit
c272a18204
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ win.webContents.session.on('will-download', (event, item, webContents) => {
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
* `event` Event
|
* `event` Event
|
||||||
* `state` String
|
* `state` String - Can be `progressing` or `interrupted`.
|
||||||
|
|
||||||
Emitted when the download has been updated and is not done.
|
Emitted when the download has been updated and is not done.
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ The `state` can be one of following:
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
* `event` Event
|
* `event` Event
|
||||||
* `state` String
|
* `state` String - Can be `completed`, `cancelled` or `interrupted`.
|
||||||
|
|
||||||
Emitted when the download is in a terminal state. This includes a completed
|
Emitted when the download is in a terminal state. This includes a completed
|
||||||
download, a cancelled download (via `downloadItem.cancel()`), and interrupted
|
download, a cancelled download (via `downloadItem.cancel()`), and interrupted
|
||||||
|
|
Loading…
Reference in a new issue