- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Fri, 17 Jul 2015 07:08:23 +0000
- To: public-web-bluetooth-log@w3.org
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