electron/spec/fixtures/module/empty.js

5 lines
142 B
JavaScript

const { ipcRenderer } = require('electron')
window.addEventListener('message', (event) => {
ipcRenderer.send('leak-result', event.data)
})