0x9000: 'OK'
})
- static DynamicTransport: typeof TransportBLE | typeof TransportUSB | typeof TransportHID
+ static DynamicTransport: typeof TransportHID | typeof TransportBLE | typeof TransportUSB
static UsbVendorId = ledgerUSBVendorId
static SYMBOL: Symbol = Symbol('Ledger')
*/
static get isUnsupported (): boolean {
console.log('Checking browser Ledger support...')
- if (typeof globalThis.navigator?.usb?.getDevices === 'function') {
- this.DynamicTransport = TransportUSB
+ if (typeof globalThis.navigator?.hid?.getDevices === 'function') {
+ this.DynamicTransport = TransportHID
return false
}
if (typeof globalThis.navigator?.bluetooth?.getDevices === 'function') {
this.DynamicTransport = TransportBLE
return false
}
- if (typeof globalThis.navigator?.hid?.getDevices === 'function') {
- this.DynamicTransport = TransportHID
+ if (typeof globalThis.navigator?.usb?.getDevices === 'function') {
+ this.DynamicTransport = TransportUSB
return false
}
return true