1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix eslint error

This commit is contained in:
Hung Nguyen
2018-04-21 09:07:49 +07:00
parent 358458a937
commit ddcd722598

View File

@@ -12,13 +12,13 @@ const themes = fs.readdirSync(themePath)
})
themes.splice(themes.indexOf('solarized'), 1, 'solarized dark', 'solarized light')
const snippetFile = process.env.NODE_ENV === 'production'
const snippetFile = process.env.NODE_ENV === 'production'
? path.join(app.getPath('appData'), 'Boostnote', 'snippets.json')
: require('path').resolve(path.join(getAppData(), 'Boostnote', 'snippets.json'))
function getAppData () {
return process.env.APPDATA || (process.platform == 'darwin'
? process.env.HOME + 'Library/Preferences'
return process.env.APPDATA || (process.platform === 'darwin'
? process.env.HOME + 'Library/Preferences'
: '/.config')
}