docs: correct 'select-bluetooth-device' requirement (#47325)

This commit is contained in:
Shelley Vohr 2025-06-03 10:16:16 +02:00 committed by GitHub
commit 17ba863f69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -841,9 +841,10 @@ Emitted when a bluetooth device needs to be selected when a call to
the `deviceId` of the device to be selected. Passing an empty string to the `deviceId` of the device to be selected. Passing an empty string to
`callback` will cancel the request. `callback` will cancel the request.
If an event listener is not added for this event, or if `event.preventDefault` If no event listener is added for this event, all bluetooth requests will be cancelled.
is not called when handling this event, the first available device will be
automatically selected. If `event.preventDefault` is not called when handling this event, the first available
device will be automatically selected.
Due to the nature of bluetooth, scanning for devices when Due to the nature of bluetooth, scanning for devices when
`navigator.bluetooth.requestDevice` is called may take time and will cause `navigator.bluetooth.requestDevice` is called may take time and will cause