1
0

auto-git:

[change] preload.js
This commit is contained in:
2025-05-26 02:54:10 +02:00
parent 23a7ead867
commit 179b4ff166

View File

@@ -53,6 +53,9 @@ contextBridge.exposeInMainWorld('electronAPI', {
pickFolder: () => ipcRenderer.invoke('pick-folder'),
repoHasCommit: (repoPath, commitHash) => ipcRenderer.invoke('repo-has-commit', repoPath, commitHash),
addFolderByPath: (folderPath) => ipcRenderer.invoke('add-folder-by-path', folderPath),
onCatBegin: (cb) => ipcRenderer.on('cat-begin', cb),
onCatChunk: (cb) => ipcRenderer.on('cat-chunk', cb),
onCatEnd: (cb) => ipcRenderer.on('cat-end', cb),
});