1
0

Add hasReadme and generateReadme methods to preload.js

This commit is contained in:
2025-05-31 19:14:53 +02:00
parent d53771e89d
commit 9e57545ac7

View File

@@ -60,7 +60,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
onCatChunk: (cb) => ipcRenderer.on('cat-chunk', cb),
onCatEnd: (cb) => ipcRenderer.on('cat-end', cb),
getDailyCommitStats: () => ipcRenderer.invoke('get-daily-commit-stats'),
hasReadme: (folderPath) => ipcRenderer.invoke('has-readme', folderPath),
generateReadme: (folderPath) => ipcRenderer.invoke('generate-readme', folderPath),
});
ipcRenderer.on('repo-updated', (_e, folder) => {