diff options
author | Maximilian Krambach <[email protected]> | 2018-06-19 07:26:01 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-06-19 07:26:01 +0000 |
commit | 780f7880c6598d4532354b348d7bd74026d162f4 (patch) | |
tree | 56ce4465927e76a7e0eb9bd0653973b11315c374 /lang/js/DemoExtension/maindemo.js | |
parent | js: import result feedback (diff) | |
download | gpgme-780f7880c6598d4532354b348d7bd74026d162f4.tar.gz gpgme-780f7880c6598d4532354b348d7bd74026d162f4.zip |
js: getDefaultKey and GenerateKey improvements
--
* src/Keyring.js: added more options for key generation.
* src/Key.js: GetDefaultKey now relies on the info associated with the
key, as the approach of relying on a secret subkey did not work as
intended
* DemoExtension: Added a button for retrieval of the subkey, to test
this functionality.
Diffstat (limited to 'lang/js/DemoExtension/maindemo.js')
-rw-r--r-- | lang/js/DemoExtension/maindemo.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/DemoExtension/maindemo.js b/lang/js/DemoExtension/maindemo.js index 67b811f6..6230c3f0 100644 --- a/lang/js/DemoExtension/maindemo.js +++ b/lang/js/DemoExtension/maindemo.js @@ -57,7 +57,7 @@ document.addEventListener('DOMContentLoaded', function() { document.getElementById('getdefaultkey').addEventListener('click', function(){ gpgmejs.Keyring.getDefaultKey().then(function(answer){ - document.getElementById('defaultkey').innerHtml = + document.getElementById('defaultkey').textContent = answer.fingerprint; }, function(errormsg){ alert(errormsg.message); |