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:
@@ -13,7 +13,7 @@ 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 !== 'test'
|
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
|
: '' // return nothing as we specified different path to snippets.json in test
|
||||||
|
|
||||||
const consts = {
|
const consts = {
|
||||||
|
|||||||
Reference in New Issue
Block a user