Skip to content

Commit

Permalink
Fail if filter contains both bluetooth and usb members (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Sep 29, 2023
1 parent 59de5c4 commit 343fe09
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ <h3>
|options|["{{SerialPortRequestOptions/filters}}"] run the following
steps:
<ol>
<li>If |filter|["{{SerialPortFilter/bluetoothServiceClassId}}"] is
present:
<ol>
<li>
If |filter|["{{SerialPortFilter/usbVendorId}}"] is present,
[=reject=] |promise| with a {{TypeError}} and return |promise|.
</li>
<li>
If |filter|["{{SerialPortFilter/usbProductId}}"] is present,
[=reject=] |promise| with a {{TypeError}} and return |promise|.
</li>
</ol>
</li>
<li>If |filter|["{{SerialPortFilter/usbVendorId}}"] is not
present, [=reject=] |promise| with a {{TypeError}} and return
|promise|.
Expand Down

0 comments on commit 343fe09

Please sign in to comment.