WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.3k stars 126 forks source link

Add default value to exclusionFilters #235

Closed beaufortfrancois closed 1 year ago

beaufortfrancois commented 1 year ago

As suggested in https://chromium-review.googlesource.com/c/chromium/src/+/4614682/15..16/third_party/blink/renderer/modules/webusb/usb.cc#b247, this PR sets the default value of exclusionFilters to [] to avoid differentiating between no list and an empty list.

@reillyeon please review.

Related to https://github.com/WICG/webusb/pull/233 and https://github.com/WICG/webusb/issues/232


Preview | Diff

beaufortfrancois commented 1 year ago

@reillyeon I've addressed your feedback. Feel free to merge if it looks good to you.