Skip to content

Commit

Permalink
Merge pull request revtel#144 from rrrasti/master
Browse files Browse the repository at this point in the history
Fixed id_length in decodeMessage.
  • Loading branch information
whitedogg13 authored Mar 18, 2019
2 parents efeb9f4 + b49b005 commit 08108e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ndef-lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ var ndef = {
(0xFF & bytes.shift());
}

if (header.il) {
id_length = bytes.shift();
}
id_length = header.il ? bytes.shift() : 0;

record_type = bytes.splice(0, type_length);
id = bytes.splice(0, id_length);
Expand Down

0 comments on commit 08108e7

Please sign in to comment.