diff --git a/scripts/ledger.js b/scripts/ledger.js index 21d015786..1f5867686 100644 --- a/scripts/ledger.js +++ b/scripts/ledger.js @@ -91,7 +91,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 - if (e instanceof DOMException && e.message.includes('Access Denied')) { + if (e instanceof DOMException && e.message.match(/access denied/i)) { if (navigator.userAgent.toLowerCase().includes('linux')) { createAlert('warning', ALERTS.WALLET_HARDWARE_UDEV, 5500); } else {