mirror of https://github.com/keeweb/keeweb.git
ignoring errors during usb init
This commit is contained in:
parent
c48153819f
commit
a1d7a1fe48
|
@ -175,8 +175,8 @@ function usbDeviceDetached(device) {
|
||||||
|
|
||||||
function fillAttachedYubiKeys() {
|
function fillAttachedYubiKeys() {
|
||||||
const usbDetection = reqNative('usb-detection');
|
const usbDetection = reqNative('usb-detection');
|
||||||
usbDetection.find((err, devices) => {
|
usbDetection.find((ignoredError, devices) => {
|
||||||
if (!err && devices) {
|
if (devices) {
|
||||||
attachedYubiKeys.push(...devices.filter(isYubiKey));
|
attachedYubiKeys.push(...devices.filter(isYubiKey));
|
||||||
reportYubiKeys();
|
reportYubiKeys();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue