From bd964334cd1b960f69c50035a309bc09b9263cda Mon Sep 17 00:00:00 2001 From: Chris Cunningham <84734+crcunningham@users.noreply.github.com> Date: Tue, 15 Jan 2019 20:51:30 -0800 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00a2c794..e8f43e3b 100644 --- a/README.md +++ b/README.md @@ -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)