Fix typo from 'update' to 'version'

This commit is contained in:
Curtis-D 2023-02-23 21:18:50 +00:00
parent bb810d79da
commit 6803a0ed77
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ class AddonUpdater {
if (this.pending.includes(filename)) return;
const info = this.cache[path.basename(filename)];
if (!info) return;
let hasUpdate = info.update > currentVersion;
let hasUpdate = info.version > currentVersion;
if (semverRegex.test(info.version) && relaxedSemverRegex.test(currentVersion)) {
hasUpdate = semverComparator(currentVersion, info.version);
}