electron/spec/fixtures/api/native-window-open-isolated-preload.js
2020-03-20 13:28:31 -07:00

5 lines
140 B
JavaScript

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