app.md - fix relaunch arg concat syntax
This commit is contained in:
parent
c51982a231
commit
d42e51e33a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue