electron change value in render process from main process 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"
})