5 lines
181 B
JavaScript
5 lines
181 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
setTitle: (title) => ipcRenderer.send('set-title', title)
|
|
})
|