Skip to content

Commit 1fa1494

Browse files
authored
refactor based on the configLocation changes
1 parent d908edc commit 1fa1494

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

app/public/js/system/guiConfig.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const {
44
ipcRenderer
55
} = require('electron');
66
const fs = require('fs-extra');
7-
const userHome = require('user-home');
8-
const Configuration = require('../common/configLocation');
7+
const configuration = require('../common/configLocation');
98

109
let guiConfig = {};
1110

@@ -30,10 +29,10 @@ guiConfig.maximize = function () {
3029
};
3130

3231
guiConfig.logOut = function () {
33-
fs.removeSync(Configuration.path);
34-
this.destroy();
32+
fs.removeSync(configuration.getPath());
33+
guiConfig.destroy();
3534
};
3635

3736
module.exports = {
3837
guiConfig: guiConfig
39-
}
38+
}

0 commit comments

Comments
 (0)