Add ability to set arbitrary arguments in a renderer process (#11850)

This commit is contained in:
Samuel Attard 2018-02-13 04:54:31 +11:00 committed by Charles Kerr
parent 66b57858b8
commit b3234f634b
6 changed files with 57 additions and 0 deletions

View file

@ -353,6 +353,9 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
script. You can use the `will-attach-webview` event on [webContents](web-contents.md)
to strip away the `preload` script and to validate or alter the
`<webview>`'s initial settings.
* `additionArguments` String[] (optional) - A list of strings that will be appended
to `process.argv` in the renderer process of this app. Useful for passing small
bits of data down to renderer process preload scripts.
When setting minimum or maximum window size with `minWidth`/`maxWidth`/
`minHeight`/`maxHeight`, it only constrains the users. It won't prevent you from