Make downloadItem.getSavePath() public

This commit is contained in:
Kevin Sawicki 2016-07-27 17:33:36 -07:00
parent 0ad8c66b65
commit 4e9b19074f

View file

@ -80,6 +80,12 @@ The API is only available in session's `will-download` callback function.
If user doesn't set the save path via the API, Electron will use the original
routine to determine the save path(Usually prompts a save dialog).
### `downloadItem.getSavePath()`
Returns the save path of the download item. This will be either the path
set via `downloadItem.setSavePath(path)` or the path selected from the shown
save dialog.
### `downloadItem.pause()`
Pauses the download.