Update index.html
This commit is contained in:
parent
7744ce6dfa
commit
39ac3ba528
@ -966,12 +966,13 @@
|
|||||||
// and not the hash of the link content
|
// and not the hash of the link content
|
||||||
latestHash = await getRepoHash('blockbook')
|
latestHash = await getRepoHash('blockbook')
|
||||||
knownHash = repoHash
|
knownHash = repoHash
|
||||||
|
hasValidHash = latestHash === knownHash
|
||||||
} else {
|
} else {
|
||||||
const [contentHash, latestRepoHash] = await Promise.all([
|
const [contentHash, latestRepoHash] = await Promise.all([
|
||||||
getLinkContentHash(linkToVerify),
|
getLinkContentHash(linkToVerify),
|
||||||
getRepoHash(dappInfo.appLink.split('/').pop())
|
getRepoHash(dappInfo.appLink.split('/').pop())
|
||||||
])
|
])
|
||||||
latestHash = contentHash[linkToVerify]
|
latestHash = contentHash[0].hash
|
||||||
knownHash = appHash
|
knownHash = appHash
|
||||||
hasValidHash = latestHash === knownHash && repoHash === latestRepoHash;
|
hasValidHash = latestHash === knownHash && repoHash === latestRepoHash;
|
||||||
if (!hasValidHash && repoHash !== latestRepoHash) {
|
if (!hasValidHash && repoHash !== latestRepoHash) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user