transparency support on Linux

This commit is contained in:
Eugene Pankov
2018-10-06 20:50:06 +02:00
parent 3d7a4a1e0e
commit 441164363f
5 changed files with 28 additions and 15 deletions

13
app/lib/config.ts Normal file
View File

@@ -0,0 +1,13 @@
import * as fs from 'fs'
import * as path from 'path'
import * as yaml from 'js-yaml'
import { app } from 'electron'
export function loadConfig (): any {
let configPath = path.join(app.getPath('userData'), 'config.yaml')
if (fs.existsSync(configPath)) {
return yaml.safeLoad(fs.readFileSync(configPath, 'utf8'))
} else {
return {}
}
}