Fix docs: app.md setLoginItemSettings
`app.setLoginItemSettings` documented arguments are misleading -- `path` and `args` should be passed in the `settings` object, not as separate params, like the code sample below it or in the test file here:9250b559f9/spec/api-app-spec.js (L336)
and in the actual C++ function declaration here:f5a75c4e87/atom/browser/browser.h (L104)
This commit is contained in:
parent
3abeb6e2bc
commit
3239da37dd
1 changed files with 6 additions and 6 deletions
|
@ -825,7 +825,7 @@ Returns `Object`:
|
|||
|
||||
**Note:** This API has no effect on [MAS builds][mas-builds].
|
||||
|
||||
### `app.setLoginItemSettings(settings[, path, args])` _macOS_ _Windows_
|
||||
### `app.setLoginItemSettings(settings)` _macOS_ _Windows_
|
||||
|
||||
* `settings` Object
|
||||
* `openAtLogin` Boolean (optional) - `true` to open the app at login, `false` to remove
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue