From: Charlie Hess Date: Wed, 2 Dec 2015 21:49:42 +0000 (-0800) Subject: Document the new method. X-Git-Tag: v0.35.3~5^2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5839df66e4fc22d9b8d55455837211387f0a6bec;p=electron.git Document the new method. --- diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index e976b0dd..c35bbc9a 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -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.