electron/spec/fixtures/api/native-window-open-isolated...

6 lines
140 B
JavaScript
Raw Normal View History

2020-03-20 14:28:31 -06:00
const { ipcRenderer } = require('electron');
window.addEventListener('message', (event) => {
2020-03-20 14:28:31 -06:00
ipcRenderer.send('answer', event.data);
});