Mutable config now

This commit is contained in:
shockrah 2021-02-11 16:20:05 -08:00
parent 94c36a7ce9
commit 51fa07158f

View File

@ -6,7 +6,7 @@ const cfg = require('./src/config.js')
let win
const config = cfg.get_config(cfg.load_parser())
let config = cfg.get_config(cfg.load_parser())
function createWin() {
win = new BrowserWindow({
@ -52,3 +52,8 @@ app.on('activate', () => {
ipcMain.on('config-request', (event, _arg) => {
event.returnValue = config
})
// TODO: do some kind logging here
ipcMain.on('http-failure', (event, msg) => {
console.log(event, msg)
})