]> khamidou — GitHub mirrors - electron.git/commitdiff
Document the new method.
authorCharlie Hess <charlie@slack-corp.com>
Wed, 2 Dec 2015 21:49:42 +0000 (13:49 -0800)
committerCharlie Hess <charlie@slack-corp.com>
Wed, 2 Dec 2015 21:49:42 +0000 (13:49 -0800)
docs/api/web-contents.md

index e976b0ddb81441541ee49830693336a58283dc47..c35bbc9ae33c2469f3b8ef9df92881278b1407ec 100644 (file)
@@ -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.