mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Document the new method.
This commit is contained in:
@@ -242,6 +242,13 @@ const options = {"extraHeaders" : "pragma: no-cache\n"}
|
||||
webContents.loadURL(url, options)
|
||||
```
|
||||
|
||||
### `webContents.downloadURL(url)`
|
||||
|
||||
* `url` URL
|
||||
|
||||
Initiates a download of the resource at `url` without navigating. The
|
||||
`will-download` event of `session` will be triggered.
|
||||
|
||||
### `webContents.getURL()`
|
||||
|
||||
Returns URL of the current web page.
|
||||
|
||||
Reference in New Issue
Block a user