Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
416 B · 12 lines
TypeScript
12345678910111213import { contextBridge, ipcRenderer } from "electron";
// Handled in index.ts; see obs.ts for the shapes.contextBridge.exposeInMainWorld("SP_ELECTRON", { isElectron: true, obs: { status: () => ipcRenderer.invoke("obs:status"), installPlugin: () => ipcRenderer.invoke("obs:installPlugin"), configureStream: (streamKey: string) => ipcRenderer.invoke("obs:configureStream", streamKey), },});