1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

fix path issues with user home dir

This commit is contained in:
Kyle Spearrin
2018-05-16 20:11:14 -04:00
parent 6e734c7fad
commit 1c4449565e
2 changed files with 3 additions and 3 deletions

View File

@@ -10,11 +10,11 @@ export class LowdbStorageService implements StorageService {
constructor(appDirName: string) {
let path = null;
if (process.platform === 'darwin') {
path = process.env.HOME + 'Library/Application Support';
path = process.env.HOME + '/Library/Application Support';
} else if (process.platform === 'win32') {
path = process.env.APPDATA;
} else {
path = process.env.HOME + '.config';
path = process.env.HOME + '/.config';
}
path += ('/' + appDirName + '/data.json');