Merge pull request #11428 from TechnicalSoup/patch-1

docs: specify string values for DownloadItem
This commit is contained in:
Zeke Sikelianos 2018-01-05 08:42:10 -08:00 committed by GitHub
commit c272a18204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ win.webContents.session.on('will-download', (event, item, webContents) => {
Returns:
* `event` Event
* `state` String
* `state` String - Can be `progressing` or `interrupted`.
Emitted when the download has been updated and is not done.
@ -58,7 +58,7 @@ The `state` can be one of following:
Returns:
* `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
download, a cancelled download (via `downloadItem.cancel()`), and interrupted