mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-23 07:19:28 -07:00
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) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(output.isVerified == false) {
|
if (!output.isVerified) {
|
||||||
output.proofUrlFetch = `/server/verifyHackerNews.php?user=${match[1]}&fp=${fingerprint}`;
|
output.proofUrlFetch = `/server/verifyHackerNews.php?user=${match[1]}&fp=${fingerprint}`;
|
||||||
try {
|
try {
|
||||||
response = await fetch(output.proofUrlFetch, {
|
response = await fetch(output.proofUrlFetch, {
|
||||||
|
@ -510,7 +510,8 @@ async function verifyProof(url, fingerprint) {
|
||||||
}
|
}
|
||||||
json = await response.json();
|
json = await response.json();
|
||||||
output.isVerified = json.verified;
|
output.isVerified = json.verified;
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue