Rhys Sullivaninit desktop app723b8f37 months agoHistory
9 lines · 387 B · TypeScript
RawDownload
import { contextBridge, ipcRenderer } from "electron"; contextBridge.exposeInMainWorld("electronAPI", {  selectScope: () => ipcRenderer.invoke("select-scope"),  getCurrentScope: () => ipcRenderer.invoke("get-current-scope"),  getRecentScopes: () => ipcRenderer.invoke("get-recent-scopes"),  switchScope: (scopePath: string) =>    ipcRenderer.invoke("switch-scope", scopePath),});