Skip to content

Commit

Permalink
debug onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Nov 12, 2023
1 parent 939ffee commit 28f8f06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/keepkey-desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keepkey-desktop",
"version": "2.1.28",
"version": "2.1.29",
"author": {
"name": "KeepKey",
"email": "[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 28f8f06

Please sign in to comment.