mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 10:46:31 +00:00
spelling: undefined
Change-type: patch Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
b4b9db7ffa
commit
67b26a5b69
@ -52,7 +52,7 @@ async function checkForUpdates(interval: number) {
|
||||
const release = await autoUpdater.checkForUpdates();
|
||||
const isOutdated =
|
||||
semver.compare(release!.updateInfo.version, version) > 0;
|
||||
const shouldUpdate = release!.updateInfo.stagingPercentage !== 0; // undefinded (default) means 100%
|
||||
const shouldUpdate = release!.updateInfo.stagingPercentage !== 0; // undefined (default) means 100%
|
||||
if (shouldUpdate && isOutdated) {
|
||||
await autoUpdater.downloadUpdate();
|
||||
packageUpdated = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user