electron/spec-main/fixtures/module/preload-remote-function.js
2020-03-20 13:28:31 -07:00

5 lines
175 B
JavaScript

const { remote, ipcRenderer } = require('electron');
remote.getCurrentWindow().rendererFunc = () => {
ipcRenderer.send('done');
};
remote.getCurrentWindow().rendererFunc();