]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Document the `disposition` parameter
authorCheng Zhao <zcbenz@gmail.com>
Tue, 4 Nov 2014 10:37:06 +0000 (18:37 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 4 Nov 2014 10:37:06 +0000 (18:37 +0800)
docs/api/browser-window.md
docs/api/web-view-tag.md

index 4455770334f568759d9ea41977048fabe58eadd2..8406f328d5bfdffeeee83b90a4b1ad3cfb97fdd6 100644 (file)
@@ -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 `<a target='_blank'>`.
index 7b801d9bd6927b856e1758fad042f1a306a15e59..d0b574539eb15896a7de7bca00452430bc40216f 100644 (file)
@@ -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.