js: Fix errorDetails of GPGME_Signature
authorThomas Oberndörfer <thomas@mailvelope.com>
Mon, 10 Sep 2018 11:11:48 +0000 (13:11 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 10 Sep 2018 11:11:48 +0000 (13:11 +0200)
* lang/js/src/Signature.js (GPGME_Signature.errorDetails):
Access properties from the summary object.

lang/js/src/Signature.js

index 7f24f32..f848e32 100644 (file)
@@ -142,8 +142,8 @@ class GPGME_Signature {
             'sys-error'];
         let result = {};
         for (let i=0; i< properties.length; i++){
-            if ( this._rawSigObject.hasOwnProperty(properties[i]) ){
-                result[properties[i]] = this._rawSigObject[properties[i]];
+            if ( this._rawSigObject.summary.hasOwnProperty(properties[i]) ){
+                result[properties[i]] = this._rawSigObject.summary[properties[i]];
             }
         }
         return result;