Skip to content

Commit

Permalink
fix!: remove deprecated getEnabled, use isEnabled instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pwespi committed Apr 15, 2023
1 parent 16822ac commit 8773995
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/bleClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,6 @@ class BleClientClass implements BleClientInterface {
});
}

/**
* Reports whether BLE is enabled on this device.
* Always returns `true` on **web**.
* @deprecated Use `isEnabled` instead.
*/
async getEnabled(): Promise<boolean> {
return this.isEnabled();
}

async isEnabled(): Promise<boolean> {
const enabled = await this.queue(async () => {
const result = await BluetoothLe.isEnabled();
Expand Down

0 comments on commit 8773995

Please sign in to comment.