diff --git a/freechat-client/main.js b/freechat-client/main.js index 0b20beb..fedddde 100644 --- a/freechat-client/main.js +++ b/freechat-client/main.js @@ -53,7 +53,13 @@ ipcMain.on('config-request', (event, _arg) => { event.returnValue = config }) -// TODO: do some kind logging here +ipcMain.on('config-update', (event, data, target) => { + config = data // update memory config first + cfg.update_config(data, target) +}) + ipcMain.on('http-failure', (event, msg) => { console.log(event, msg) }) + +