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

5 lines
116 B
JavaScript
Raw Normal View History

2015-11-10 07:29:43 +00:00
var ipc = require('ipc-renderer');
ipc.on('ping', function(event, message) {
ipc.sendToHost('pong', message);
});