From f9efd0da68f9726b1c83765ed818165dc4509550 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Tue, 13 Nov 2018 15:24:28 +1100 Subject: [PATCH] allow multiple instances running for debugging --- config/development2.json | 5 +++++ main.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 config/development2.json diff --git a/config/development2.json b/config/development2.json new file mode 100644 index 000000000..c1fae0625 --- /dev/null +++ b/config/development2.json @@ -0,0 +1,5 @@ +{ + "storageProfile": "development2", + "disableAutoUpdate": true, + "openDevTools": true +} diff --git a/main.js b/main.js index 1869f2410..e000e2f55 100644 --- a/main.js +++ b/main.js @@ -96,7 +96,7 @@ function showWindow() { } } -if (!process.mas) { +if (!process.mas && !development) { console.log('making app single instance'); const shouldQuit = app.makeSingleInstance(() => { // Someone tried to run a second instance, we should focus our window