diff options
author | Maximilian Krambach <[email protected]> | 2018-08-23 15:55:35 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-08-23 15:58:22 +0000 |
commit | f62dd4bb27c36e44acf93af1daf24eefda3029c2 (patch) | |
tree | ac1093c5ef261ae083d53d33dd359cb56ec04386 | |
parent | js: offer an always-trust parameter on encrypt (diff) | |
download | gpgme-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.js | 3 |
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]); |