From: Cheng Zhao Date: Tue, 4 Nov 2014 10:37:06 +0000 (+0800) Subject: docs: Document the `disposition` parameter X-Git-Tag: v0.19.1~1^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=033212841d6ed593ed1ede66e0360671677cab08;p=electron.git docs: Document the `disposition` parameter --- diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 44557703..8406f328 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -551,7 +551,8 @@ Emitted when a redirect was received while requesting a resource. * `event` Event * `url` String * `frameName` String -* `options` Object +* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, + `new-window` and `other` Emitted when the page requested to open a new window for `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 7b801d9b..d0b57453 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -250,6 +250,8 @@ webview.addEventListener('console-message', function(e) { * `url` String * `frameName` String +* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, + `new-window` and `other` Fired when the guest page attempts to open a new browser window.