From ac47a6384a2924ca4f851080213d2c5a3663ded6 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 30 Jun 2020 11:13:22 +0200 Subject: [PATCH] Add partial support for XMPP proofs --- assets/scripts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/scripts.js b/assets/scripts.js index 4d39c05..4a5918d 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -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, {