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

3 lines
134 B
JavaScript

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