5 lines
195 B
JavaScript
5 lines
195 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
handleCounter: (callback) => ipcRenderer.on('update-counter', callback)
|
|
})
|