You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
544 B

const { contextBridge, ipcRenderer } = require('electron');
// Expose protected methods that allow the renderer process to use
// the ipcRenderer without exposing the entire object
contextBridge.exposeInMainWorld('electronAPI', {
configurePlugin: (options) => ipcRenderer.invoke('configure-plugin', options),
scheduleNotification: (options) => ipcRenderer.invoke('schedule-notification', options),
getDebugInfo: () => ipcRenderer.invoke('get-debug-info'),
getPerformanceMetrics: () => ipcRenderer.invoke('get-performance-metrics')
});