docs: add frameName note for window.open (#28435)

This commit is contained in:
Michaela Laurencin 2021-03-31 13:57:39 -07:00 committed by GitHub
parent 05d164e660
commit 2a55ae4b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,7 @@ window.open('https://github.com', '_blank', 'top=500,left=200,frame=false,nodeIn
* Non-standard features (that are not handled by Chromium or Electron) given in * Non-standard features (that are not handled by Chromium or Electron) given in
`features` will be passed to any registered `webContents`'s `features` will be passed to any registered `webContents`'s
`did-create-window` event handler in the `additionalFeatures` argument. `did-create-window` event handler in the `additionalFeatures` argument.
* `frameName` follows the specification of `windowName` located in the [native documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open#parameters).
To customize or cancel the creation of the window, you can optionally set an To customize or cancel the creation of the window, you can optionally set an
override handler with `webContents.setWindowOpenHandler()` from the main override handler with `webContents.setWindowOpenHandler()` from the main