Merge pull request #2870 from atom/window-open-options

Pass options in "new-window" event
This commit is contained in:
Cheng Zhao 2015-09-23 00:06:50 +08:00
commit 6c8a9cb072
4 changed files with 9 additions and 4 deletions

View file

@ -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 `<a target='_blank'>`.