fix: navigator.bluetooth.requestDevice (#27902)
* fix: navigator.bluetooth.requestDevice * cleanup lint and add test * update bluetooth test to handle no bluetooth adapter available * update bluetooth test to handle bluetooth permission denied
This commit is contained in:
parent
bd940b2904
commit
d57fd6cef0
9 changed files with 269 additions and 2 deletions
|
@ -1770,4 +1770,10 @@ content::SerialDelegate* ElectronBrowserClient::GetSerialDelegate() {
|
|||
return serial_delegate_.get();
|
||||
}
|
||||
|
||||
content::BluetoothDelegate* ElectronBrowserClient::GetBluetoothDelegate() {
|
||||
if (!bluetooth_delegate_)
|
||||
bluetooth_delegate_ = std::make_unique<ElectronBluetoothDelegate>();
|
||||
return bluetooth_delegate_.get();
|
||||
}
|
||||
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue