electron/spec/fixtures/module/preload-ipc.js

5 lines
143 B
JavaScript
Raw Normal View History

2020-03-20 14:28:31 -06:00
const { ipcRenderer } = require('electron');
2016-03-25 14:03:49 -06:00
ipcRenderer.on('ping', function (event, message) {
2020-03-20 14:28:31 -06:00
ipcRenderer.sendToHost('pong', message);
});