fix: typo

This commit is contained in:
withyellow 2023-03-25 16:24:24 +08:00
parent 6ff0dc59ed
commit 7b187c421f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export function update(win: Electron.BrowserWindow) {
function startDownload( function startDownload(
callback: (error: Error | null, info: ProgressInfo) => void, callback: (error: Error | null, info: ProgressInfo) => void,
complete: (evnet: UpdateDownloadedEvent) => void, complete: (event: UpdateDownloadedEvent) => void,
) { ) {
autoUpdater.on('download-progress', info => callback(null, info)) autoUpdater.on('download-progress', info => callback(null, info))
autoUpdater.on('error', error => callback(error, null)) autoUpdater.on('error', error => callback(error, null))