6 lines
185 B
JavaScript
6 lines
185 B
JavaScript
|
const { contextBridge, ipcRenderer } = require('electron');
|
||
|
|
||
|
contextBridge.exposeInMainWorld('electronAPI', {
|
||
|
sendPrompt: (prompt) => ipcRenderer.invoke('send-prompt', prompt),
|
||
|
});
|