This commit is contained in:
pavel 2026-02-25 14:57:46 +01:00
commit 63d8aa9fe3
6 changed files with 4536 additions and 517 deletions

View file

@ -1,5 +1,6 @@
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
copyToClipboard: (text) => ipcRenderer.invoke('clipboard-write', text)
copyToClipboard: (text) => ipcRenderer.invoke('clipboard-write', text),
getConfig: () => ipcRenderer.invoke('get-config')
});