Skip to content

Commit

Permalink
Fix ledger udev error (#224)
Browse files Browse the repository at this point in the history
* Fix ledger error

* lowercase

* Remove console.log
  • Loading branch information
Duddino authored and JSKitty committed Oct 10, 2023
1 parent 1f8e579 commit ab061e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ab061e3

Please sign in to comment.