GoogleChrome / samples

A repo containing samples tied to new functionality in each release of Google Chrome.
https://www.chromestatus.com/samples
Apache License 2.0
5.79k stars 2.38k forks source link

Add forget() to "Get Devices" sample #770

Closed beaufortfrancois closed 2 years ago

beaufortfrancois commented 2 years ago

This PR updates both "Get Devices" web bluetooth samples with the new forget() method that is available behind the same feature as navigator.bluetooth.getDevices().

Live previews:

It currently requires the experimental chrome://flags/#enable-web-bluetooth-new-permissions-backend in Chrome 101.

@reillyeon PTAL