Skip to content

Conversation

@denyncrawford
Copy link

@denyncrawford denyncrawford commented Dec 11, 2020

This PR is related to this issue

Now if the user scanner has prefixing feature, it can be used to trigger the event if the code string includes the options.devicePrefix value. If the option is not set, it will work globally, listening to all devices as usual.

Changes:

  • Filter event execution if options.devicePrefix is set and the value matches the code string. Then removes the prefix from the code string.
  • Simple demo included

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