bumped js-yaml

This commit is contained in:
Eugene Pankov
2021-01-28 21:52:11 +01:00
parent e0efb4073a
commit 21084b5d24
6 changed files with 31 additions and 40 deletions

View File

@@ -6,7 +6,7 @@ import { app } from 'electron'
export function loadConfig (): any {
const configPath = path.join(app.getPath('userData'), 'config.yaml')
if (fs.existsSync(configPath)) {
return yaml.safeLoad(fs.readFileSync(configPath, 'utf8'))
return yaml.load(fs.readFileSync(configPath, 'utf8'))
} else {
return {}
}