dsr/src/preload.ts
2023-07-29 16:15:34 +02:00

7 lines
216 B
TypeScript

import { contextBridge } from "electron";
contextBridge.exposeInMainWorld("versions", {
node: () => process.versions.node,
chrome: () => process.versions.chrome,
electron: () => process.versions.electron,
});