Skip to content

Commit

Permalink
🐛 fixing configstore permission issue on windows zulip#125 [WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
akashnimare committed Apr 1, 2017
1 parent 1aa1655 commit 1f6d076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const {dialog} = require('electron');
const https = require('https');
const http = require('http');
const electronLocalshortcut = require('electron-localshortcut');
const Configstore = require('configstore');
// const Configstore = require('configstore');
const Configstore = require('electron-config');
const JsonDB = require('node-json-db');
const isDev = require('electron-is-dev');
const tray = require('./tray');
Expand All @@ -23,7 +24,9 @@ const data = db.getData('/');
// adds debug features like hotkeys for triggering dev tools and reload
require('electron-debug')();

const conf = new Configstore('Zulip-Desktop');
// const conf = new Configstore('Zulip-Desktop');
const conf = new Configstore();


function userOS() {
if (os.platform() === 'darwin') {
Expand Down
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
],
"dependencies": {
"configstore": "2.1.0",
"electron-config":"0.2.1",
"electron-debug": "1.1.0",
"electron-is-dev": "0.1.2",
"electron-localshortcut": "1.0.0",
Expand Down

0 comments on commit 1f6d076

Please sign in to comment.