fix: make menu.popup options optional (#13977)
* add empty object as default param for options * update docs * add spec for optional options * fix: add null check for options
This commit is contained in:
parent
fc4499ebd4
commit
a7052efaf4
3 changed files with 9 additions and 3 deletions
|
@ -61,7 +61,7 @@ The `menu` object has the following instance methods:
|
|||
|
||||
#### `menu.popup(options)`
|
||||
|
||||
* `options` Object
|
||||
* `options` Object (optional)
|
||||
* `window` [BrowserWindow](browser-window.md) (optional) - Default is the focused window.
|
||||
* `x` Number (optional) - Default is the current mouse cursor position.
|
||||
Must be declared if `y` is declared.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue