Initial commit
This commit is contained in:
commit
c4626edee4
19 changed files with 11968 additions and 0 deletions
9
preload.js
Normal file
9
preload.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('versions', {
|
||||
node() { return process.versions.node; },
|
||||
chrome() { return process.versions.chrome; },
|
||||
electron() { return process.versions.electron; },
|
||||
ping() { return ipcRenderer.invoke('ping'); }
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue