forked from Mirrors/keyoxide-web
Improve syntax
This commit is contained in:
parent
6eb43b0f90
commit
6090faa1ca
1 changed files with 3 additions and 2 deletions
|
@ -496,7 +496,7 @@ async function verifyProof(url, fingerprint) {
|
|||
} catch (e) {
|
||||
}
|
||||
|
||||
if(output.isVerified == false) {
|
||||
if (!output.isVerified) {
|
||||
output.proofUrlFetch = `/server/verifyHackerNews.php?user=${match[1]}&fp=${fingerprint}`;
|
||||
try {
|
||||
response = await fetch(output.proofUrlFetch, {
|
||||
|
@ -510,7 +510,8 @@ async function verifyProof(url, fingerprint) {
|
|||
}
|
||||
json = await response.json();
|
||||
output.isVerified = json.verified;
|
||||
} catch (e) { }
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue