6 lines
171 B
JavaScript
6 lines
171 B
JavaScript
|
const { remote, ipcRenderer } = require('electron')
|
||
|
remote.getCurrentWindow().rendererFunc = () => {
|
||
|
ipcRenderer.send('done')
|
||
|
}
|
||
|
remote.getCurrentWindow().rendererFunc()
|