1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

clean up some redundant code, changed to path.sep, remove some default snippet

This commit is contained in:
Hung Nguyen
2018-04-22 09:27:47 +07:00
parent a7b85b123e
commit a7d0a4bdac
2 changed files with 16 additions and 21 deletions

View File

@@ -18,8 +18,8 @@ const snippetFile = process.env.NODE_ENV === 'production'
function getAppData () {
return process.env.APPDATA || (process.platform === 'darwin'
? process.env.HOME + 'Library/Preferences'
: require('os').homedir() + '/.config')
? process.env.HOME + 'Library' + path.sep + 'Preferences'
: require('os').homedir() + path.sep + '.config')
}
const consts = {