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

4 lines
100 B
JavaScript

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