added error handling

This commit is contained in:
2023-02-06 16:44:17 +01:00
parent 749e8b43d5
commit 3285770d97
7 changed files with 41 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld('electronAPI', {
handleError: (callback) => ipcRenderer.on("error-message", callback),
updateProgress: (callback) => ipcRenderer.on('github-lookup', callback)
})