aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/DemoExtension/maindemo.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-08-29 15:45:55 +0000
committerMaximilian Krambach <[email protected]>2018-08-29 15:45:55 +0000
commit61ac70cfb5cf58f92cd97abdde7152040c51201c (patch)
treec3baac7a5824f782b13cd9942e96ba52d57111ab /lang/js/DemoExtension/maindemo.js
parentpython bindings: core (diff)
downloadgpgme-61ac70cfb5cf58f92cd97abdde7152040c51201c.tar.gz
gpgme-61ac70cfb5cf58f92cd97abdde7152040c51201c.zip
js: return base64 after encrypt with armor=false
-- * src/gpgmejs.js/encrypt: the encrypted data were converted back to a (incorrect) string, whereas they should be data with no encoding specified. Returning base64 data is the expected way. * DemoExtension: caught yet another usage of old syntax.
Diffstat (limited to '')
-rw-r--r--lang/js/DemoExtension/maindemo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/DemoExtension/maindemo.js b/lang/js/DemoExtension/maindemo.js
index 97a27f60..b472bcc8 100644
--- a/lang/js/DemoExtension/maindemo.js
+++ b/lang/js/DemoExtension/maindemo.js
@@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', function () {
function (){
let data = document.getElementById('inputtext').value;
let keyId = document.getElementById('pubkey').value;
- gpgmejs.encrypt({ data: data, privateKeys: keyId }).then(
+ gpgmejs.encrypt({ data: data, publicKeys: keyId, armor:false }).then(
function (answer){
if (answer.data){
document.getElementById(