parent
f169ffdaca
commit
f79de0ddf1
@ -0,0 +1,8 @@
|
|||||||
|
const { contextBridge } = require('electron')
|
||||||
|
|
||||||
|
contextBridge.exposeInMainWorld('versions', {
|
||||||
|
node: () => process.versions.node,
|
||||||
|
chrome: () => process.versions.chrome,
|
||||||
|
electron: () => process.versions.electron,
|
||||||
|
// we can also expose variables, not just functions
|
||||||
|
})
|
Loading…
Reference in new issue