electron/spec/fixtures/module/answer.js
2016-04-21 11:49:42 -07:00

4 lines
125 B
JavaScript

var ipcRenderer = require('electron').ipcRenderer
window.answer = function (answer) {
ipcRenderer.send('answer', answer)
}