Re: [web-bluetooth] Say what to do when the system has no Bluetooth adapter or it's off.

Thanks Jeffrey. Is this what expect from 
`navigator.bluetooth.getAvailability`?
 
```js  
navigator.bluetooth.getAvailability()
.then(availability => {
  // availability.value may be kept up-to-date by the UA as long as 
the availability
  // object is alive. It is advised for web developers to discard the 
object as soon 
  // as it's not needed.
  handleBluetoothAvailabilityChange(availability.value);
  availability.onchange = () => { 
handleBluetoothAvailabilityChange(this.value); };
})
.catch(() =>
  // Bluetooth availability monitoring is not supported by the 
platform.
});
```

-- 
GitHub Notif of comment by beaufortfrancois
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/127#issuecomment-122199766

Received on Friday, 17 July 2015 07:08:25 UTC