aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Keyring.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-04-23 17:15:40 +0000
committerMaximilian Krambach <[email protected]>2018-04-23 17:15:40 +0000
commit727340b295f25e04cb595022ba143cda48364697 (patch)
tree81d54f26c2dfcdd324382119486b6681a529aed2 /lang/js/src/Keyring.js
parentjs: Key handling stubs, Error handling, refactoring (diff)
downloadgpgme-727340b295f25e04cb595022ba143cda48364697.tar.gz
gpgme-727340b295f25e04cb595022ba143cda48364697.zip
js: don't allow message operation changes
-- Once an operation is changed, their set of allowed/required parameters will change. So we shouldn't set/change the operation later.
Diffstat (limited to 'lang/js/src/Keyring.js')
-rw-r--r--lang/js/src/Keyring.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js
index 52fa7f71..d8cb84b2 100644
--- a/lang/js/src/Keyring.js
+++ b/lang/js/src/Keyring.js
@@ -49,8 +49,7 @@ export class GPGME_Keyring {
*
*/
getKeys(pattern, include_secret){
- let msg = new GPGME_Message;
- msg.operation = 'listkeys';
+ let msg = new GPGME_Message('listkeys');
if (pattern && typeof(pattern) === 'string'){
msg.setParameter('pattern', pattern);
}