Skip to content

Commit

Permalink
fixed command order for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
thearturca committed Jan 15, 2021
1 parent efaa615 commit 47932cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ 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 @@ -22,9 +24,6 @@ if (!fs.existsSync(dirDB)){

const axios = require('axios');

if (require('electron-squirrel-startup')) return app.quit();
console.log(app.getPath('documents'));

const gotTheLock = app.requestSingleInstanceLock()

if (!gotTheLock) {
Expand Down

0 comments on commit 47932cc

Please sign in to comment.