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

Fix wrong path of snippets.json

This commit is contained in:
Junyoung Choi
2018-06-08 15:37:03 +09:00
parent 8af50aa5bd
commit f6db946c9a

View File

@@ -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 = {