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