We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133f4b5 commit 9636458Copy full SHA for 9636458
preload.js
@@ -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