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

6 lines
171 B
JavaScript
Raw Normal View History

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