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

Merge pull request #2047 from BoostIO/fix-snippets-json-path

Fix wrong path of snippets.json
This commit is contained in:
Junyoung Choi (Sai)
2018-06-08 15:56:40 +09:00
committed by GitHub

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