Skip to content

Commit

Permalink
1.2 introduced bug with saving settings
Browse files Browse the repository at this point in the history
  • Loading branch information
stanfieldr committed May 16, 2016
1 parent 67cc928 commit 6b42239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghetto-skype",
"version": "1.2.0",
"version": "1.2.1",
"productName": "Ghetto Skype",
"description": "Web Skype + Tray Icon + Notifications",
"private": true,
Expand Down
6 changes: 3 additions & 3 deletions tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ let settingFile = electron.app.getPath('userData') + '/settings.json';
let Settings;

try {
settingFile = JSON.parse(fs.readFileSync(settingFile));
Settings = require('./settings.json');
let tmpSettings = JSON.parse(fs.readFileSync(settingFile));
Settings = require('./settings.json');

Object.assign(Settings, settingFile);
Object.assign(Settings, tmpSettings);
} catch(e) {
Settings = require('./settings.json');
}
Expand Down

0 comments on commit 6b42239

Please sign in to comment.