Implement GetAvailability for Bluetooth

This commit is contained in:
Attila Dusnoki 2017-02-03 15:31:24 +01:00
parent 8ca1383c41
commit ca7aa6bff8
9 changed files with 98 additions and 9 deletions

View file

@ -29,8 +29,8 @@ dictionary RequestDeviceOptions {
[Pref="dom.bluetooth.enabled"]
interface Bluetooth : EventTarget {
// [SecureContext]
// Promise<boolean> getAvailability();
[SecureContext]
Promise<boolean> getAvailability();
[SecureContext]
attribute EventHandler onavailabilitychanged;
// [SecureContext, SameObject]