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

4 lines
134 B
JavaScript
Raw Permalink Normal View History

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