1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-21 05:31:45 +00:00

Change the directory of RcParser

This commit is contained in:
asmsuechan
2017-08-12 09:36:30 +09:00
parent 9405b95825
commit 1e202db50f
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import _ from 'lodash'
import RcParser from 'browser/main/lib/RcParser'
import RcParser from 'browser/lib/RcParser'
const OSX = global.process.platform === 'darwin'
const win = global.process.platform === 'win32'

View File

@@ -1,21 +0,0 @@
import path from 'path'
import sander from 'sander'
const BOOSTNOTERC = '.boostnoterc'
const homePath = global.process.env.HOME || global.process.env.USERPROFILE
const _boostnotercPath = path.join(homePath, BOOSTNOTERC)
function parse (boostnotercPath = _boostnotercPath) {
if (!sander.existsSync(boostnotercPath)) return {}
try {
return JSON.parse(sander.readFileSync(boostnotercPath).toString())
} catch (e) {
console.warn(e)
console.warn('Your .boostnoterc is broken so it\'s not used.')
return {}
}
}
export default {
parse
}