mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
fix: syntax
This commit is contained in:
parent
1373f14587
commit
35c1dbc13d
1 changed files with 1 additions and 4 deletions
|
@ -105,13 +105,10 @@ const fetchWKD = (id) => {
|
||||||
try {
|
try {
|
||||||
profile = await doipjs.openpgp.parsePublicKey(publicKey)
|
profile = await doipjs.openpgp.parsePublicKey(publicKey)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
profile = null
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!profile) {
|
|
||||||
reject(new Error('No public keys could be fetched using WKD'))
|
reject(new Error('No public keys could be fetched using WKD'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.publicKey.fetch.method = 'wkd'
|
profile.publicKey.fetch.method = 'wkd'
|
||||||
profile.publicKey.fetch.query = id
|
profile.publicKey.fetch.query = id
|
||||||
profile.publicKey.fetch.resolvedUrl = fetchURL
|
profile.publicKey.fetch.resolvedUrl = fetchURL
|
||||||
|
|
Loading…
Reference in a new issue