Skip to content

Commit

Permalink
Fix hex encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapo-luchini committed Apr 25, 2015
1 parent ed76fb0 commit 015c505
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -27,8 +27,7 @@ function decode(der) {
tree.appendChild(asn1.toDOM());
if (wantHex.checked)
dump.appendChild(asn1.toHexDOM());
if (der.length > maxLength)
return;
var hex = (der.length < maxLength) ? asn1.toHexString() : '';
if (area.value === '')
area.value = hex;
try {
Expand Down

0 comments on commit 015c505

Please sign in to comment.