From dd7d37ca21684d4d77db4f513c6212776fc6ea82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obernd=C3=B6rfer?= Date: Mon, 10 Sep 2018 13:11:48 +0200 Subject: [PATCH] js: Fix errorDetails of GPGME_Signature * lang/js/src/Signature.js (GPGME_Signature.errorDetails): Access properties from the summary object. --- lang/js/src/Signature.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/js/src/Signature.js b/lang/js/src/Signature.js index 7f24f320..f848e32f 100644 --- a/lang/js/src/Signature.js +++ b/lang/js/src/Signature.js @@ -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;