9 lines
No EOL
249 B
TypeScript
9 lines
No EOL
249 B
TypeScript
import { contextBridge } from "electron";
|
|
|
|
// Expose protected methods that allow the renderer process to use
|
|
// the ipcRenderer without exposing the entire object
|
|
export const handlers = {
|
|
|
|
};
|
|
|
|
contextBridge.exposeInMainWorld("electron", handlers); |