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 updateExe = path.resolve(appFolder, '..', 'Update.exe')
const exeName = path.basename(process.execPath) const exeName = path.basename(process.execPath)
app.setLoginItemSettings({openAtLogin: true}, updateExe, [ app.setLoginItemSettings({
'--processStart', `"${exeName}"`, openAtLogin: true,
'--process-start-args', `"--hidden"` path: updateExe,
]) args: [
'--processStart', `"${exeName}"`,
'--process-start-args', `"--hidden"`
]
})
``` ```
**Note:** This API has no effect on [MAS builds][mas-builds]. **Note:** This API has no effect on [MAS builds][mas-builds].