electron/spec/fixtures/module/preload-ipc.js
2016-03-30 17:00:31 -07:00

4 lines
146 B
JavaScript

var ipcRenderer = require('electron').ipcRenderer
ipcRenderer.on('ping', function (event, message) {
ipcRenderer.sendToHost('pong', message)
})