()
| 17757 | const servicesDiv = document.getElementById('bt-device-services'); |
| 17758 | |
| 17759 | if (!enumerateBtn) return; |
| 17760 | |
| 17761 | const address = document.getElementById('bt-pair-btn')?.getAttribute('data-device-address'); |
| 17762 | if (!address) return; |
| 17763 | |
| 17764 | const device = currentBluetoothDevices.find(d => d.address === address); |
| 17765 | if (!device) return; |
| 17766 | |
| 17767 | const originalHTML = enumerateBtn.innerHTML; |
| 17768 | enumerateBtn.innerHTML = 'Enumerating...'; |
| 17769 | enumerateBtn.disabled = true; |
| 17770 | |
| 17771 | if (statusDiv) { |
| 17772 | statusDiv.classList.remove('hidden'); |
| 17773 | statusDiv.innerHTML = ` |
| 17774 | <div class="bg-blue-600 rounded p-3 text-sm"> |
| 17775 | Enumerating services for ${device.name || address}... |
| 17776 | </div> |
| 17777 | `; |
| 17778 | } |
| 17779 |
no test coverage detected