Add hasReadme and generateReadme methods to preload.js
This commit is contained in:
@@ -60,7 +60,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||||||
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'),
|
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) => {
|
ipcRenderer.on('repo-updated', (_e, folder) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user