Add partial support for XMPP proofs

This commit is contained in:
Yarmo Mackenbach 2020-06-30 11:13:22 +02:00
parent 54421cfe14
commit ac47a6384a

View file

@ -413,6 +413,12 @@ async function verifyProof(url, fingerprint) {
return output;
}
}
// XMPP
if (/^xmpp:/.test(url)) {
output.type = "xmpp";
match = url.match(/xmpp:(.*)@(.*)/);
output.display = `${match[1]}@${match[2]}`;
}
// Catchall
try {
response = await fetch(url, {