diff --git a/preload.js b/preload.js index cb8a668..9d2d953 100644 --- a/preload.js +++ b/preload.js @@ -48,6 +48,8 @@ contextBridge.exposeInMainWorld('electronAPI', { relocateFolder: (oldPath, newPath) => ipcRenderer.invoke('relocate-folder', oldPath, newPath), pickFolder: () => ipcRenderer.invoke('pick-folder'), repoHasCommit: (repoPath, commitHash) => ipcRenderer.invoke('repo-has-commit', repoPath, commitHash), + addFolderByPath: (folderPath) => ipcRenderer.invoke('add-folder-by-path', folderPath), + }); ipcRenderer.on('repo-updated', (_e, folder) => {