fix: fix typo

This commit is contained in:
Haoqun Jiang
2018-12-04 20:51:57 +08:00
parent 41443944c7
commit ae2a9bc145

View File

@@ -46,7 +46,7 @@ async function getAndCacheLatestVersion (cached) {
if (res.statusCode === 200) {
const { version } = res.body
if (semver.valid(version) && version !== cached) {
saveOptions({ lastestVersion: version, lastChecked: Date.now() })
saveOptions({ latestVersion: version, lastChecked: Date.now() })
return version
}
}