Improve syntax

This commit is contained in:
Yarmo Mackenbach 2020-07-31 00:17:11 +02:00
parent 6eb43b0f90
commit 6090faa1ca

View file

@ -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;
}