From: Chris Duncan Date: Fri, 8 Aug 2025 19:23:54 +0000 (-0700) Subject: Match Ledger interface priority with documentation. X-Git-Tag: v0.10.5~43^2~6 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e230bfea25123c5ea7cfc7f7f22c2d6b7459d266;p=libnemo.git Match Ledger interface priority with documentation. --- diff --git a/src/lib/ledger.ts b/src/lib/ledger.ts index a1b9ef3..6daf4b9 100644 --- a/src/lib/ledger.ts +++ b/src/lib/ledger.ts @@ -38,14 +38,14 @@ export class Ledger extends Wallet { */ static get isUnsupported (): boolean { console.log('Checking browser Ledger support...') - if (typeof globalThis.navigator?.usb?.getDevices === 'function') { - this.DynamicTransport = TransportUSB - return false - } if (typeof globalThis.navigator?.bluetooth?.getDevices === 'function') { this.DynamicTransport = TransportBLE return false } + if (typeof globalThis.navigator?.usb?.getDevices === 'function') { + this.DynamicTransport = TransportUSB + return false + } if (typeof globalThis.navigator?.hid?.getDevices === 'function') { this.DynamicTransport = TransportHID return false