Answers for "electronjs ipc doesn't work"

0

electronjs ipc doesn't work

//index
mainWindow.webContents.on('did-finish-load', () => {
      mainWindow.webContents.send('test','This is a test');
    })
//render

ipcRenderer.on('test', (evt,data) => {
     ipcRenderer.emit('end',true);
})
Posted by: Guest on October-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language