From: Cheng Zhao Date: Tue, 22 Sep 2015 15:41:08 +0000 (+0800) Subject: docs: The options parameter of new-window event X-Git-Tag: v0.33.2~21^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8bfa3cba63720da7a37e93c549a19ce452bc35c3;p=electron.git docs: The options parameter of new-window event --- diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index f971c569..e858d021 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -111,6 +111,8 @@ Returns: * `frameName` String * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, `new-window` and `other`. +* `options` Object - The options which will be used for creating the new + `BrowserWindow`. Emitted when the page requests to open a new window for a `url`. It could be requested by `window.open` or an external link like ``. diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index 7b4aa2eb..3fda3a98 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -505,6 +505,8 @@ Returns: * `frameName` String * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, `new-window` and `other`. +* `options` Object - The options which should be used for creating the new + `BrowserWindow`. Fired when the guest page attempts to open a new browser window.