mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -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;
|
||||
}
|
||||
}
|
||||
// XMPP
|
||||
if (/^xmpp:/.test(url)) {
|
||||
output.type = "xmpp";
|
||||
match = url.match(/xmpp:(.*)@(.*)/);
|
||||
output.display = `${match[1]}@${match[2]}`;
|
||||
}
|
||||
// Catchall
|
||||
try {
|
||||
response = await fetch(url, {
|
||||
|
|
Loading…
Reference in a new issue