diff --git a/src/main.js b/src/main.js index 32ec4c2..46bc5e0 100644 --- a/src/main.js +++ b/src/main.js @@ -4,8 +4,6 @@ const path = require('path'); const { app, BrowserWindow, Menu, Tray, ipcMain } = require('electron'); const keytar = require('keytar') -if (require('electron-squirrel-startup')) return app.quit(); - const appName = '200iqbot'; if (!fs.existsSync(path.join(app.getPath('documents'), appName))){ fs.mkdirSync(path.join(app.getPath('documents'), appName)); @@ -24,6 +22,8 @@ if (!fs.existsSync(dirDB)){ const axios = require('axios'); +if (require('electron-squirrel-startup')) return app.quit(); + const gotTheLock = app.requestSingleInstanceLock() if (!gotTheLock) {