1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +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') 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') ? path.join(app.getPath('appData'), 'Boostnote', 'snippets.json')
: require('path').resolve(path.join(getAppData(), 'Boostnote', 'snippets.json')) : require('path').resolve(path.join(getAppData(), 'Boostnote', 'snippets.json'))
function getAppData () { function getAppData () {
return process.env.APPDATA || (process.platform == 'darwin' return process.env.APPDATA || (process.platform === 'darwin'
? process.env.HOME + 'Library/Preferences' ? process.env.HOME + 'Library/Preferences'
: '/.config') : '/.config')
} }