Skip to content

Commit

Permalink
Add fullURL key in read_ndef command (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
icedevml authored Nov 16, 2024
1 parent ffac5e1 commit 9fd0aae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src.ts/drivers/read_ndef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ async function readNDEF(transceive: TransceiveFunc) {

const skipLen = fullBuf[3];
fullBuf = fullBuf.slice(4 + skipLen, 4 + skipLen + lengthData);
const parsed = queryString.parseUrl(fullBuf.toString());
const fullURL = fullBuf.toString();
const parsed = queryString.parseUrl(fullURL);

return {
url: parsed.url,
fullURL: fullURL,
qs: {...parsed.query}
};
}
Expand Down

0 comments on commit 9fd0aae

Please sign in to comment.