ignoring errors during usb init

pull/1856/head
antelle 2 years ago
parent c48153819f
commit a1d7a1fe48
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C

@ -175,8 +175,8 @@ function usbDeviceDetached(device) {
function fillAttachedYubiKeys() {
const usbDetection = reqNative('usb-detection');
usbDetection.find((err, devices) => {
if (!err && devices) {
usbDetection.find((ignoredError, devices) => {
if (devices) {
attachedYubiKeys.push(...devices.filter(isYubiKey));
reportYubiKeys();
}

Loading…
Cancel
Save