From: Haojian Wu Date: Sat, 6 Jun 2015 09:51:27 +0000 (+0800) Subject: :memo: Add missing `httpreferer` option doc. X-Git-Tag: v0.28.0~18^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=994be9cdabbfa1fdea148643dfa0d6e16ed2c531;p=electron.git :memo: Add missing `httpreferer` option doc. --- diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index ab776698..67d31f27 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -571,9 +571,9 @@ Calling `window.print()` in web page is equivalent to call doesn't need print feature, you can safely remove `pdf.dll` in saving binary size. -### BrowserWindow.loadUrl(url) +### BrowserWindow.loadUrl(url, [options]) -Same with `webContents.loadUrl(url)`. +Same with `webContents.loadUrl(url, [options])`. ### BrowserWindow.reload() @@ -778,9 +778,11 @@ Emitted when a plugin process is crashed. Emitted when the WebContents is destroyed. -### WebContents.loadUrl(url) +### WebContents.loadUrl(url, [options]) * `url` URL +* `options` URL + * `httpreferrer` String - A HTTP Referer url Loads the `url` in the window, the `url` must contains the protocol prefix, e.g. the `http://` or `file://`.