electron/spec/fixtures/module/preload-ipc.js

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

5 lines
143 B
JavaScript
Raw Normal View History

const { ipcRenderer } = require('electron');
2016-03-25 20:03:49 +00:00
ipcRenderer.on('ping', function (event, message) {
ipcRenderer.sendToHost('pong', message);
});