Skip to content

Commit 9636458

Browse files
authored
Create preload.js
1 parent 133f4b5 commit 9636458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

preload.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const { contextBridge, ipcRenderer } = require('electron');
2+
3+
contextBridge.exposeInMainWorld('electronAPI', {
4+
onUpdateStats: (callback) => ipcRenderer.on('update-stats', callback)
5+
});

0 commit comments

Comments
 (0)