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 e976b0d..c35bbc9 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.