* Check which transport protocols are supported by the browser and return the\r
* transport type according to the following priorities: USB, Bluetooth, HID.\r
*/\r
- static get #isUnsupported (): boolean {\r
+ static get isUnsupported (): boolean {\r
console.log('Checking browser Ledger support...')\r
if (typeof globalThis.navigator?.usb?.getDevices === 'function') {\r
this.DynamicTransport = TransportUSB\r
*/\r
static async create (): Promise<Ledger> {\r
try {\r
- if (this.#isUnsupported) throw new Error('Browser is unsupported')\r
+ if (this.isUnsupported) throw new Error('Browser is unsupported')\r
this.#isInternal = true\r
const self = new this()\r
await Database.add({ [self.id]: { id: self.id, type: 'Ledger' } }, Wallet.DB_NAME)\r
static DynamicTransport: typeof TransportBLE | typeof TransportUSB | typeof TransportHID
static SYMBOL: Symbol
/**
+ * Check which transport protocols are supported by the browser and return the
+ * transport type according to the following priorities: USB, Bluetooth, HID.
+ */
+ static get isUnsupported (): boolean
+ /**
* Creates a new Ledger hardware wallet communication layer by dynamically
* importing the ledger.js service.
*