feat(desktop): update preload bridge types for enhanced update-error and getVersion

This commit is contained in:
Jannis Braun
2026-03-21 02:30:06 +01:00
parent a7d5abfca9
commit 6ebb124d25
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -30,7 +30,7 @@ contextBridge.exposeInMainWorld('backspace', {
onUpdateDownloaded: (callback: (info: { version: string }) => void) => {
ipcRenderer.on('update-downloaded', (_event, info) => callback(info));
},
onUpdateError: (callback: (error: string) => void) => {
onUpdateError: (callback: (error: { message: string; releaseUrl: string }) => void) => {
ipcRenderer.on('update-error', (_event, error) => callback(error));
},
installUpdate: () => {
@@ -39,6 +39,7 @@ contextBridge.exposeInMainWorld('backspace', {
checkForUpdates: () => {
ipcRenderer.send('check-for-updates');
},
getVersion: () => ipcRenderer.invoke('get-app-version'),
// Window focus
onWindowFocusChange: (callback: (focused: boolean) => void) => {