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