[Chore] Clean PR
This commit is contained in:
parent
4606f93e52
commit
e087078400
1 changed files with 3 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
const { ipcMain, app } = require('electron');
|
const { ipcMain, app, shell } = require('electron');
|
||||||
|
|
||||||
ipcMain.on('DISCORD_UPDATED_QUOTES', (e, c) => {
|
ipcMain.on('DISCORD_UPDATED_QUOTES', (e, c) => {
|
||||||
if (c === 'o') exports.open();
|
if (c === 'o') exports.open();
|
||||||
|
@ -32,9 +32,6 @@ exports.open = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('of', () => {
|
ipcMain.on('of', () => {
|
||||||
const { shell } = require('electron')
|
shell.openPath(require('../paths').getUserData() + '/settings.json')
|
||||||
const { getUserData } = require('../paths')
|
|
||||||
const {join} = require('path')
|
|
||||||
shell.openPath(join(getUserData(), 'settings.json'))
|
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue