mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Change the directory of RcParser
This commit is contained in:
@@ -5,7 +5,7 @@ const BOOSTNOTERC = '.boostnoterc'
|
|||||||
const homePath = global.process.env.HOME || global.process.env.USERPROFILE
|
const homePath = global.process.env.HOME || global.process.env.USERPROFILE
|
||||||
const _boostnotercPath = path.join(homePath, BOOSTNOTERC)
|
const _boostnotercPath = path.join(homePath, BOOSTNOTERC)
|
||||||
|
|
||||||
function parse (boostnotercPath = _boostnotercPath) {
|
export function parse (boostnotercPath = _boostnotercPath) {
|
||||||
if (!sander.existsSync(boostnotercPath)) return {}
|
if (!sander.existsSync(boostnotercPath)) return {}
|
||||||
try {
|
try {
|
||||||
return JSON.parse(sander.readFileSync(boostnotercPath).toString())
|
return JSON.parse(sander.readFileSync(boostnotercPath).toString())
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import RcParser from 'browser/main/lib/RcParser'
|
import RcParser from 'browser/lib/RcParser'
|
||||||
|
|
||||||
const OSX = global.process.platform === 'darwin'
|
const OSX = global.process.platform === 'darwin'
|
||||||
const win = global.process.platform === 'win32'
|
const win = global.process.platform === 'win32'
|
||||||
|
|||||||
Reference in New Issue
Block a user