Merge pull request #7391 from kiavashps/patch-1

docs: app.md - fix relaunch arg concat syntax
This commit is contained in:
Kevin Sawicki 2016-09-28 10:30:59 -07:00 committed by GitHub
commit d4583006b3

View file

@ -351,7 +351,7 @@ line argument to the new instance:
```javascript
const {app} = require('electron')
app.relaunch({args: process.argv.slice(1) + ['--relaunch']})
app.relaunch({args: process.argv.slice(1).concat(['--relaunch'])})
app.exit(0)
```