diff --git a/docs/api/app.md b/docs/api/app.md index 745b0c431881..ec6a0da536cd 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -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) ```