Skip to content

Commit

Permalink
Ensure history doesn't become unreadable when an invalid card is read
Browse files Browse the repository at this point in the history
  • Loading branch information
Pip Cet committed Nov 16, 2024
1 parent 1302225 commit c7f1f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@
var detail = {};
_transceive = getWrappedTransceive(apdu_history, tag.type);
try {
var { card_type, ..._detail } = await ReadAnyCard(tag);
let { card_type, ..._detail } = await ReadAnyCard(tag);
Object.assign(detail, _detail);
// pass ndef struct to detail
detail["ndef"] = tag["ndef"];
Expand Down

0 comments on commit c7f1f7c

Please sign in to comment.