From 814cc7818de50ba528de6660c832e6ee1aa7877e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 06:31:47 +0200 Subject: [PATCH] Add function to fetch daily commit stats in preload.js --- preload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/preload.js b/preload.js index 3f8c34d..4ac5151 100644 --- a/preload.js +++ b/preload.js @@ -56,6 +56,7 @@ contextBridge.exposeInMainWorld('electronAPI', { onCatBegin: (cb) => ipcRenderer.on('cat-begin', cb), onCatChunk: (cb) => ipcRenderer.on('cat-chunk', cb), onCatEnd: (cb) => ipcRenderer.on('cat-end', cb), + getDailyCommitStats: () => ipcRenderer.invoke('get-daily-commit-stats'), });