This commit is contained in:
Frank Noirot
2024-09-26 10:44:46 -04:00
parent e2e1991977
commit 540ce2c8e6

View File

@ -16,9 +16,8 @@ const startDeviceFlow = (host: string): Promise<string> =>
const loginWithDeviceFlow = (): Promise<string> =>
ipcRenderer.invoke('loginWithDeviceFlow')
const onUpdateDownloadStart = (
callback: (value: { version: string; }) => void
) =>
ipcRenderer.on('update-download-start', (_event, value) => callback(value))
callback: (value: { version: string }) => void
) => ipcRenderer.on('update-download-start', (_event, value) => callback(value))
const onUpdateDownloaded = (callback: (value: string) => void) =>
ipcRenderer.on('update-downloaded', (_event, value) => callback(value))
const appRestart = () => ipcRenderer.invoke('app.restart')