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