I need help with sending a message to ask the renderer to parse an HTML string
mainWindow.webContents.send('parse html', { resp})
The renderer processes the data and sends a reply
ipc.on('parse html',function(e,p){
let body = $(p.resp.body)
let player = body.find('#player')[0]
const mi = $(player).find('script:not([src])')[0].innerText
let sl = mi.split(";")[0]
sl = sl.replace("var flashvars_229661792 =", '')
pJson = JSON.parse(sl)
console.log(pJson);
ipc.send('json:parsed',{pJson})
})
Unfortunately, the main process is not receiving the reply
mainWindow.webContents.on('json:parsed', (event,request)=> {
console.log(request);
});