only one filter needs to match
Closed this issue · 1 comments
monteslu commented
Not sure this is by the spec, or just the chrome implementation, but in chrome you only need to match one of the filters in your filter list.
Perhaps .every
should be .some
?
https://github.com/thegecko/webusb/blob/master/src/usb.ts#L89
thegecko commented
I think maybe you are right. Step 5 here:
https://wicg.github.io/webusb/#request-the-usb-permission
outlines to remove devices if they don't match a filter, therefore they only need to match one :)