From c7f1f7c9472b6965d71f24893776dd134fabd3a6 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Sat, 16 Nov 2024 14:40:48 +0000 Subject: [PATCH] Ensure history doesn't become unreadable when an invalid card is read --- assets/read.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/read.js b/assets/read.js index 89f95ba..411cf81 100644 --- a/assets/read.js +++ b/assets/read.js @@ -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"];