fix: potential updater issue (#2973)

This commit is contained in:
Peng Xiao
2023-07-03 19:04:45 +08:00
committed by GitHub
parent 0f1c5163a1
commit 08e003b0f6
3 changed files with 39 additions and 38 deletions

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;