fix(config): saving config restored

This commit is contained in:
Alexey Kasyanchuk
2018-02-02 20:10:07 +03:00
parent 316072008a
commit fa1512dee5
3 changed files with 16 additions and 4 deletions

View File

@ -51,7 +51,6 @@ if(app.getPath("userData") && app.getPath("userData").length > 0)
const configProxy = new Proxy(config, {
set: (target, prop, value, receiver) => {
target[prop] = value
console.log('set op', configPath)
if(!fs.existsSync(configPath))
fs.writeFileSync(configPath, '{}')