mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-12 03:29:26 +00:00
Update README.md: Fix error
I was seeing this error:
```
index.js:29
message: await openpgp.message.readArmored(encrypted), // parse armored message
^^^^^^^
```
And I think it's because the async was missing.
This commit is contained in:
@@ -184,7 +184,7 @@ const encryptDecryptFunction = async() => {
|
||||
encrypted = ciphertext.data // '-----BEGIN PGP MESSAGE ... END PGP MESSAGE-----'
|
||||
return encrypted
|
||||
})
|
||||
.then(encrypted => {
|
||||
.then(async encrypted => {
|
||||
const options = {
|
||||
message: await openpgp.message.readArmored(encrypted), // parse armored message
|
||||
publicKeys: (await openpgp.key.readArmored(pubkey)).keys, // for verification (optional)
|
||||
|
||||
Reference in New Issue
Block a user