electron/spec/fixtures/module/preload-ipc.js
2015-11-10 15:29:43 +08:00

4 lines
116 B
JavaScript

var ipc = require('ipc-renderer');
ipc.on('ping', function(event, message) {
ipc.sendToHost('pong', message);
});