Minor changes

This commit is contained in:
Yarmo Mackenbach 2020-06-28 22:54:17 +02:00
parent 7cad95893f
commit f1083290af

View file

@ -584,12 +584,14 @@ if (elFormProofs) {
if (elProfileUid) {
let match, opts, profileUid = elProfileUid.innerHTML;
if (/.*@.*/.test(profileUid)) {
// Match email for wkd
match = profileUid.match(/(.*)@(.*)_([a-zA-Z0-9]+)$/);
opts = {
input: `${match[1]}@${match[2]}.${match[3]}`,
mode: "wkd"
}
} else {
// Match fingerprint for hkp
opts = {
input: profileUid,
mode: "hkp"