Adding listener for update-config requests from the render proc

This commit is contained in:
shockrah 2021-02-11 22:18:22 -08:00
parent 689366072e
commit 687b514d0d

View File

@ -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)
})