open new tabs from cli (fixes #67)

This commit is contained in:
Eugene Pankov
2017-07-05 16:22:44 +02:00
parent 709ffadc7c
commit fc060acd88
4 changed files with 23 additions and 12 deletions

View File

@@ -8,8 +8,8 @@ if (process.argv.indexOf('--debug') !== -1) {
let app = electron.app
let secondInstance = app.makeSingleInstance((argv) => {
app.window.webContents.send('host:second-instance')
let secondInstance = app.makeSingleInstance((argv, cwd) => {
app.window.webContents.send('host:second-instance', argv, cwd)
})
if (secondInstance) {