mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-23 07:19:28 -07:00
Add partial support for XMPP proofs
This commit is contained in:
parent
54421cfe14
commit
ac47a6384a
1 changed files with 6 additions and 0 deletions
|
@ -413,6 +413,12 @@ async function verifyProof(url, fingerprint) {
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// XMPP
|
||||||
|
if (/^xmpp:/.test(url)) {
|
||||||
|
output.type = "xmpp";
|
||||||
|
match = url.match(/xmpp:(.*)@(.*)/);
|
||||||
|
output.display = `${match[1]}@${match[2]}`;
|
||||||
|
}
|
||||||
// Catchall
|
// Catchall
|
||||||
try {
|
try {
|
||||||
response = await fetch(url, {
|
response = await fetch(url, {
|
||||||
|
|
Loading…
Reference in a new issue