From f7f43081282b54f5f3796a513c5f28d26f89e781 Mon Sep 17 00:00:00 2001 From: Duddino Date: Mon, 9 Oct 2023 13:19:27 +0200 Subject: [PATCH 1/3] Fix ledger error --- scripts/ledger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ledger.js b/scripts/ledger.js index 21d015786..808da4b0c 100644 --- a/scripts/ledger.js +++ b/scripts/ledger.js @@ -91,7 +91,8 @@ export async function getHardwareWalletKeys(path, xpub = false, verify = true) { // This is when the OS denies access to the WebUSB // It's likely caused by faulty udev rules on linux - if (e instanceof DOMException && e.message.includes('Access Denied')) { + console.log(e.message); + if (e instanceof DOMException && e.message.match(/Access Denied/i)) { if (navigator.userAgent.toLowerCase().includes('linux')) { createAlert('warning', ALERTS.WALLET_HARDWARE_UDEV, 5500); } else { From e5abe9e174afa8e3d5f3e9e2edbd6239020b8ce4 Mon Sep 17 00:00:00 2001 From: Duddino Date: Mon, 9 Oct 2023 13:24:28 +0200 Subject: [PATCH 2/3] lowercase --- scripts/ledger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ledger.js b/scripts/ledger.js index 808da4b0c..a4c7f275f 100644 --- a/scripts/ledger.js +++ b/scripts/ledger.js @@ -92,7 +92,7 @@ export async function getHardwareWalletKeys(path, xpub = false, verify = true) { // This is when the OS denies access to the WebUSB // It's likely caused by faulty udev rules on linux console.log(e.message); - if (e instanceof DOMException && e.message.match(/Access Denied/i)) { + if (e instanceof DOMException && e.message.match(/access denied/i)) { if (navigator.userAgent.toLowerCase().includes('linux')) { createAlert('warning', ALERTS.WALLET_HARDWARE_UDEV, 5500); } else { From feaf3c338f52e396ad6d1b7ad3ca8a9829910ee4 Mon Sep 17 00:00:00 2001 From: Duddino Date: Mon, 9 Oct 2023 13:25:46 +0200 Subject: [PATCH 3/3] Remove console.log --- scripts/ledger.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ledger.js b/scripts/ledger.js index a4c7f275f..1f5867686 100644 --- a/scripts/ledger.js +++ b/scripts/ledger.js @@ -91,7 +91,6 @@ export async function getHardwareWalletKeys(path, xpub = false, verify = true) { // This is when the OS denies access to the WebUSB // It's likely caused by faulty udev rules on linux - console.log(e.message); if (e instanceof DOMException && e.message.match(/access denied/i)) { if (navigator.userAgent.toLowerCase().includes('linux')) { createAlert('warning', ALERTS.WALLET_HARDWARE_UDEV, 5500);