From db9e7d24afbc1b93d3a61e76ac81f435a25f9917 Mon Sep 17 00:00:00 2001 From: thearturca Date: Fri, 15 Jan 2021 13:06:37 +0500 Subject: [PATCH] small fix --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {