electron ipc send to main thread code example
Example: electron send message from renderer to main
const { ipcRenderer } = require('electron')
// inside a renderer process
ipcRenderer.send('text', {
data: "some data"
})
const { ipcRenderer } = require('electron')
// inside a renderer process
ipcRenderer.send('text', {
data: "some data"
})