dsr/src/preload.ts

7 lines
195 B
TypeScript
Raw Normal View History

2023-07-29 16:23:38 +02:00
import { contextBridge, ipcRenderer } from "electron";
2023-07-29 19:23:18 +02:00
contextBridge.exposeInMainWorld("internals", {
ffmpeg: () => ipcRenderer.invoke("ffmpeg"),
2023-07-29 20:20:55 +02:00
argv: () => ipcRenderer.invoke("argv"),
});