Adding listener for update-config requests from the render proc
This commit is contained in:
parent
689366072e
commit
687b514d0d
@ -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)
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user