electron/spec/fixtures/module/preload-ipc.js
Samuel Attard 122685194a
build: add import/order eslint rule (#44085)
* build: add import/order eslint rule

* chore: run lint:js --fix
2024-10-02 19:10:44 -07:00

5 lines
144 B
JavaScript

const { ipcRenderer } = require('electron');
ipcRenderer.on('ping', function (event, message) {
ipcRenderer.sendToHost('pong', message);
});