aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-08-23 15:55:35 +0000
committerMaximilian Krambach <[email protected]>2018-08-23 15:58:22 +0000
commitf62dd4bb27c36e44acf93af1daf24eefda3029c2 (patch)
treeac1093c5ef261ae083d53d33dd359cb56ec04386
parentjs: offer an always-trust parameter on encrypt (diff)
downloadgpgme-f62dd4bb27c36e44acf93af1daf24eefda3029c2.tar.gz
gpgme-f62dd4bb27c36e44acf93af1daf24eefda3029c2.zip
js: fix syntax inside Keyring methods
-- * recent changes in parameter calling led to a forgotten internal call in getDefaultKey using old syntax (and failing in case a default key is configured)
-rw-r--r--lang/js/src/Keyring.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js
index 59027088..2b57e63f 100644
--- a/lang/js/src/Keyring.js
+++ b/lang/js/src/Keyring.js
@@ -185,7 +185,8 @@ export class GPGME_Keyring {
&& resp.option.value.length === 1
&& resp.option.value[0].hasOwnProperty('string')
&& typeof (resp.option.value[0].string) === 'string'){
- me.getKeys(resp.option.value[0].string, true).then(
+ me.getKeys({ pattern: resp.option.value[0].string,
+ prepare_sync: true }).then(
function (keys){
if (keys.length === 1){
resolve(keys[0]);