Update example to use new option keys

This commit is contained in:
Kevin Sawicki 2017-01-30 15:22:44 -08:00
parent e2501a80e4
commit 3c2539eced

View file

@ -813,10 +813,14 @@ const appFolder = path.dirname(process.execPath)
const updateExe = path.resolve(appFolder, '..', 'Update.exe')
const exeName = path.basename(process.execPath)
app.setLoginItemSettings({openAtLogin: true}, updateExe, [
'--processStart', `"${exeName}"`,
'--process-start-args', `"--hidden"`
])
app.setLoginItemSettings({
openAtLogin: true,
path: updateExe,
args: [
'--processStart', `"${exeName}"`,
'--process-start-args', `"--hidden"`
]
})
```
**Note:** This API has no effect on [MAS builds][mas-builds].