mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Fix XMPP proof url
This commit is contained in:
parent
1488855850
commit
7ffca75db0
1 changed files with 2 additions and 2 deletions
|
@ -537,9 +537,9 @@ async function verifyProof(url, fingerprint) {
|
||||||
output.type = "xmpp";
|
output.type = "xmpp";
|
||||||
match = url.match(/xmpp:(.*)@(.*)/);
|
match = url.match(/xmpp:(.*)@(.*)/);
|
||||||
output.display = `${match[1]}@${match[2]}`;
|
output.display = `${match[1]}@${match[2]}`;
|
||||||
output.proofUrlFetch = `https://xmpp-vcard.keyoxide.org/api/vcard/${output.display}/DESC`;
|
output.proofUrl = `https://xmpp-vcard.keyoxide.org/api/vcard/${output.display}/DESC`;
|
||||||
try {
|
try {
|
||||||
response = await fetch(output.proofUrlFetch);
|
response = await fetch(output.proofUrl);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error('Response failed: ' + response.status);
|
throw new Error('Response failed: ' + response.status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue