mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Fix keybase key fetching
This commit is contained in:
parent
4db908b8dd
commit
e98cee4b4a
1 changed files with 1 additions and 2 deletions
|
@ -609,10 +609,9 @@ async function fetchKeys(opts) {
|
|||
return response;
|
||||
}
|
||||
})
|
||||
.then(response => response.blob())
|
||||
.then(response => response.text());
|
||||
} catch (e) {
|
||||
throw("Error: No public keys could be fetched from the Keybase account.");
|
||||
throw(`Error: No public keys could be fetched from the Keybase account (${e}).`);
|
||||
}
|
||||
output.publicKey = (await openpgp.key.readArmored(opts.plaintext)).keys[0];
|
||||
|
||||
|
|
Loading…
Reference in a new issue