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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
140 B
JavaScript
Raw Normal View History

2018-09-13 16:10:51 +00:00
const { ipcRenderer } = require('electron');
window.addEventListener('message', (event) => {
ipcRenderer.send('answer', event.data);
});