Skip to content

Conversation

@educastellano
Copy link

I need to read binary data from a QR code and there's already support in the jsqr library but the data isn't passed to the onScan() handler.

Would it be ok to pass the whole object returned from jsqr?

function handleScan({ data, binaryData, ...rest }) {
  console.log(data, binaryData, ...rest)
} 

This would be a breaking change so it needs a major version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant