electron/spec-main/fixtures/module/preload-remote-function.js

6 lines
175 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
const { remote, ipcRenderer } = require('electron');
remote.getCurrentWindow().rendererFunc = () => {
2020-03-20 20:28:31 +00:00
ipcRenderer.send('done');
};
remote.getCurrentWindow().rendererFunc();