From 28f8f06cad24c002057fdfd52e61a59502193b05 Mon Sep 17 00:00:00 2001 From: bithighlander Date: Sun, 12 Nov 2023 16:06:51 -0700 Subject: [PATCH] debug onboarding --- packages/keepkey-desktop/package.json | 2 +- .../src/helpers/kk-state-controller/walletUtils.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/keepkey-desktop/package.json b/packages/keepkey-desktop/package.json index 592283a6f..41c126cb9 100644 --- a/packages/keepkey-desktop/package.json +++ b/packages/keepkey-desktop/package.json @@ -1,6 +1,6 @@ { "name": "keepkey-desktop", - "version": "2.1.28", + "version": "2.1.29", "author": { "name": "KeepKey", "email": "support@keepkey.com" diff --git a/packages/keepkey-desktop/src/helpers/kk-state-controller/walletUtils.ts b/packages/keepkey-desktop/src/helpers/kk-state-controller/walletUtils.ts index 9f27dc10b..6eeda5927 100644 --- a/packages/keepkey-desktop/src/helpers/kk-state-controller/walletUtils.ts +++ b/packages/keepkey-desktop/src/helpers/kk-state-controller/walletUtils.ts @@ -14,8 +14,12 @@ export const initializeWallet = async ( const webUsbDevice = await webUsbAdapter.getDevice().catch(() => undefined) if (webUsbDevice) { // this line throws the error if the device does not support webUsb - const webUsbWallet = await webUsbAdapter.pairRawDevice(webUsbDevice) - if (webUsbWallet) return webUsbWallet + try{ + const webUsbWallet = await webUsbAdapter.pairRawDevice(webUsbDevice) + if (webUsbWallet) return webUsbWallet + }catch(e){ + console.error("unable to pair webUsb device", e) + } } const hidDevice = await hidAdapter.getDevice().catch(() => undefined) if (hidDevice) {