forked from Mirrors/keyoxide-web
wrapping verifyProof in try
This will prevent other proofs from failing if there is an error in one of them See #44
This commit is contained in:
parent
0491c3db38
commit
e07cfd7f7b
1 changed files with 302 additions and 298 deletions
|
@ -435,6 +435,7 @@ async function verifyProof(url, fingerprint) {
|
|||
// Init
|
||||
let reVerify, match, output = {url: url, type: null, proofUrl: url, proofUrlFetch: null, isVerified: false, display: null, qr: null};
|
||||
|
||||
try {
|
||||
// DNS
|
||||
if (/^dns:/.test(url)) {
|
||||
output.type = "domain";
|
||||
|
@ -791,6 +792,9 @@ async function verifyProof(url, fingerprint) {
|
|||
} catch (e) {
|
||||
console.warn(e);
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
}
|
||||
|
||||
// Return output without confirmed proof
|
||||
return output;
|
||||
|
|
Loading…
Reference in a new issue