dsr/src/preload.ts

8 lines
216 B
TypeScript
Raw Normal View History

2023-07-29 16:15:34 +02:00
import { contextBridge } from "electron";
2023-07-29 16:15:34 +02:00
contextBridge.exposeInMainWorld("versions", {
node: () => process.versions.node,
chrome: () => process.versions.chrome,
electron: () => process.versions.electron,
});