Merge pull request #7391 from kiavashps/patch-1
docs: app.md - fix relaunch arg concat syntax
This commit is contained in:
commit
d4583006b3
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