From 6b49cdc9745c72e408da298b6f0588cb9e90330f Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 20 Sep 2018 13:01:42 +0200 Subject: [PATCH] properly pass cwd from a second instance --- app/lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/index.ts b/app/lib/index.ts index 64537c47..2e7037c1 100644 --- a/app/lib/index.ts +++ b/app/lib/index.ts @@ -32,7 +32,7 @@ process.on('uncaughtException' as any, err => { }) app.on('second-instance', (_event, argv, cwd) => { - application.send('host:second-instance', parseArgs(argv, cwd)) + application.send('host:second-instance', parseArgs(argv, cwd), cwd) }) const argv = parseArgs(process.argv, process.cwd())