diff --git a/electron.js b/electron.js index d70f20f271..158bb9325c 100644 --- a/electron.js +++ b/electron.js @@ -76,7 +76,7 @@ if (is.development && !port) { return; }; -if (app.isPackaged && !app.requestSingleInstanceLock()) { +if (!is.development && !app.requestSingleInstanceLock()) { Api.exit(mainWindow, '' ,false); return; };