We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d908edc commit 1fa1494Copy full SHA for 1fa1494
1 file changed
app/public/js/system/guiConfig.js
@@ -4,8 +4,7 @@ const {
4
ipcRenderer
5
} = require('electron');
6
const fs = require('fs-extra');
7
-const userHome = require('user-home');
8
-const Configuration = require('../common/configLocation');
+const configuration = require('../common/configLocation');
9
10
let guiConfig = {};
11
@@ -30,10 +29,10 @@ guiConfig.maximize = function () {
30
29
};
31
32
guiConfig.logOut = function () {
33
- fs.removeSync(Configuration.path);
34
- this.destroy();
+ fs.removeSync(configuration.getPath());
+ guiConfig.destroy();
35
36
37
module.exports = {
38
guiConfig: guiConfig
39
-}
+}
0 commit comments