electron/spec/fixtures/api/native-window-open-isolated-preload.js
2018-09-14 14:57:01 +10:00

5 lines
137 B
JavaScript

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