electron/docs/fiddles/system/system-information/get-version-information/preload.js

4 lines
134 B
JavaScript

const { contextBridge } = require('electron/renderer')
contextBridge.exposeInMainWorld('electronVersion', process.versions.electron)