Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thearturca committed Jan 15, 2021
1 parent 47932cc commit db9e7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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) {
Expand Down

0 comments on commit db9e7d2

Please sign in to comment.