8 lines
325 B
JavaScript
8 lines
325 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron')
|
|
|
|
contextBridge.exposeInMainWorld('fabricDesktop', {
|
|
getConfig: () => ipcRenderer.invoke('fabric:config:get'),
|
|
setConfig: (next) => ipcRenderer.invoke('fabric:config:set', next),
|
|
notify: (title, body) => ipcRenderer.invoke('fabric:notify', { title, body }),
|
|
})
|