electron/spec/fixtures/api/native-window-open-isolated-preload.js
2017-04-30 19:33:40 +09:00

5 lines
135 B
JavaScript

const {ipcRenderer} = require('electron')
window.addEventListener('message', (event) => {
ipcRenderer.send('answer', event.data)
})