Skip to content

Commit

Permalink
Fix wrong path of snippets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Jun 8, 2018
1 parent 8af50aa commit f6db946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/lib/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const themes = fs.readdirSync(themePath)
themes.splice(themes.indexOf('solarized'), 1, 'solarized dark', 'solarized light')

const snippetFile = process.env.NODE_ENV !== 'test'
? path.join(app.getPath('appData'), 'Boostnote', 'snippets.json')
? path.join(app.getPath('userData'), 'snippets.json')
: '' // return nothing as we specified different path to snippets.json in test

const consts = {
Expand Down

0 comments on commit f6db946

Please sign in to comment.