From e0870784008a584229d3094e0988f5da155c7fd7 Mon Sep 17 00:00:00 2001 From: CanadaHonk <19228318+CanadaHonk@users.noreply.github.com> Date: Sun, 7 Aug 2022 13:41:18 +0100 Subject: [PATCH] [Chore] Clean PR --- src/config/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 13f35be..876ea42 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,4 +1,4 @@ -const { ipcMain, app } = require('electron'); +const { ipcMain, app, shell } = require('electron'); ipcMain.on('DISCORD_UPDATED_QUOTES', (e, c) => { if (c === 'o') exports.open(); @@ -32,9 +32,6 @@ exports.open = () => { }); ipcMain.on('of', () => { - const { shell } = require('electron') - const { getUserData } = require('../paths') - const {join} = require('path') - shell.openPath(join(getUserData(), 'settings.json')) + shell.openPath(require('../paths').getUserData() + '/settings.json') }) -}; \ No newline at end of file +};