diff --git a/assets/js/OpenEarable.js b/assets/js/OpenEarable.js index b969d23..92269dd 100644 --- a/assets/js/OpenEarable.js +++ b/assets/js/OpenEarable.js @@ -252,12 +252,16 @@ class BLEManager { this._executeNextOperation(); }); } + async connect() { return this._enqueueOperation(async () => { const optionalServiceUUIDs = Object.keys(SERVICES).map((service) => SERVICES[service].UUID); this.device = await navigator.bluetooth.requestDevice({ - acceptAllDevices: true, + filters: [ + { namePrefix: "OpenEarable" } + ], + acceptAllDevices: false, optionalServices: optionalServiceUUIDs }); this.gattServer = await this.device.gatt.connect(); diff --git a/index.html b/index.html index c8576b3..1ab1e29 100644 --- a/index.html +++ b/index.html @@ -383,7 +383,6 @@
Audio Control
-