mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #7391 from kiavashps/patch-1
docs: app.md - fix relaunch arg concat syntax
This commit is contained in:
@@ -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)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user