diff options
author | Maximilian Krambach <[email protected]> | 2018-09-06 08:11:10 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-09-06 08:11:10 +0000 |
commit | 6463b1cd3b52f7b8a0bbaa838ae7b29da9f458e4 (patch) | |
tree | d717d6a9282df3667b78f0be67241116a9dc5fc6 /lang/js/src/Helpers.js | |
parent | js: documentation cleanup (diff) | |
download | gpgme-6463b1cd3b52f7b8a0bbaa838ae7b29da9f458e4.tar.gz gpgme-6463b1cd3b52f7b8a0bbaa838ae7b29da9f458e4.zip |
js: fix error in toKeyIdArray
--
* src/Helpers.js: GPGME_Keys were not parsed as valid, as their
fingerprint getter is not a fingerprint 'property'.
* BrowserTestExtension: fixed a dsplay typo in counting of tests.
Diffstat (limited to '')
-rw-r--r-- | lang/js/src/Helpers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/Helpers.js b/lang/js/src/Helpers.js index f370fe60..0b418529 100644 --- a/lang/js/src/Helpers.js +++ b/lang/js/src/Helpers.js @@ -50,7 +50,7 @@ export function toKeyIdArray (input){ } } else if (typeof (input[i]) === 'object'){ let fpr = ''; - if (input[i].hasOwnProperty('fingerprint')){ + if (input[i].fingerprint !== undefined){ fpr = input[i].fingerprint; } else if (input[i].hasOwnProperty('primaryKey') && input[i].primaryKey.hasOwnProperty('getFingerprint')){ |