mirror of https://github.com/keeweb/keeweb
ignoring errors during usb init
This commit is contained in:
parent
c48153819f
commit
a1d7a1fe48
|
@ -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…
Reference in New Issue