From a1d7a1fe480063ca8dec2f722b5d5c0e630fcbf6 Mon Sep 17 00:00:00 2001 From: antelle Date: Thu, 29 Apr 2021 10:15:41 +0200 Subject: [PATCH] ignoring errors during usb init --- desktop/native-module-host.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/native-module-host.js b/desktop/native-module-host.js index bf3ac12c..ce1fa768 100644 --- a/desktop/native-module-host.js +++ b/desktop/native-module-host.js @@ -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(); }