mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-16 11:50:41 -04:00
fix: ensure stable version check is correctly implemented in update process
This commit is contained in:
@@ -47,6 +47,7 @@ class UpdateInfo extends React.Component<UpdateInfoProps, UpdateInfoState> {
|
||||
res = await checkDeveloperUpdate();
|
||||
}
|
||||
const newVersion = res.version;
|
||||
const stableVersion = res.stable_version || "1.0.0";
|
||||
await sleep(500);
|
||||
if (
|
||||
res.stable === "no" &&
|
||||
@@ -57,6 +58,9 @@ class UpdateInfo extends React.Component<UpdateInfoProps, UpdateInfoState> {
|
||||
if ((process as any).windowsStore) {
|
||||
return;
|
||||
}
|
||||
if (stableVersion === packageInfo.version) {
|
||||
return;
|
||||
}
|
||||
if (compareVersions(newVersion, packageInfo.version) > 0) {
|
||||
if (
|
||||
ConfigService.getReaderConfig("isDisableUpdate") !== "yes" ||
|
||||
|
||||
Reference in New Issue
Block a user