fix: potential updater issue (#2973)

This commit is contained in:
Peng Xiao
2023-07-03 19:04:45 +08:00
committed by Alex Yang
parent 0e342999fd
commit 5be4873d36
3 changed files with 39 additions and 38 deletions
+8 -1
View File
@@ -11,7 +11,14 @@ export const updaterHandlers = {
return quitAndInstall();
},
checkForUpdatesAndNotify: async () => {
return checkForUpdatesAndNotify(true);
const res = await checkForUpdatesAndNotify(true);
if (res) {
const { updateInfo } = res;
return {
updateInfo,
};
}
return null;
},
} satisfies NamespaceHandlers;