8 lines
302 B
JavaScript
8 lines
302 B
JavaScript
// You can also put expose this code to the renderer
|
|
// process with the `contextBridge` API
|
|
const { ipcRenderer } = require('electron')
|
|
|
|
// render proccess receiver for github api data
|
|
ipcRenderer.on('github-lookup', (_event, arg) => {
|
|
console.log(arg) // prints "pong" in the DevTools console
|
|
}); |