Add function to fetch daily commit stats in preload.js
This commit is contained in:
@@ -56,6 +56,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||||||
onCatBegin: (cb) => ipcRenderer.on('cat-begin', cb),
|
onCatBegin: (cb) => ipcRenderer.on('cat-begin', cb),
|
||||||
onCatChunk: (cb) => ipcRenderer.on('cat-chunk', cb),
|
onCatChunk: (cb) => ipcRenderer.on('cat-chunk', cb),
|
||||||
onCatEnd: (cb) => ipcRenderer.on('cat-end', cb),
|
onCatEnd: (cb) => ipcRenderer.on('cat-end', cb),
|
||||||
|
getDailyCommitStats: () => ipcRenderer.invoke('get-daily-commit-stats'),
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user