Merge pull request 'Fixed fingerprint url with undefined keyData.fingerprint value.' (#60) from KiddyTheKid/web:fix-undefined-url-search-parameter into dev

Reviewed-on: https://codeberg.org/keyoxide/web/pulls/60
This commit is contained in:
Yarmo Mackenbach 2020-12-24 11:35:19 +01:00
commit 68328f0ed4

View file

@ -282,12 +282,12 @@ async function displayProfile(opts) {
}
}
if (!keyLink) {
keyLink = `https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}`;
keyLink = `https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${fingerprint}`;
}
break;
case "hkp":
keyLink = `https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}`;
keyLink = `https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${fingerprint}`;
break;
case "keybase":