using proper call sequence in node-usb-detection

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

@ -17,13 +17,13 @@ const messageHandlers = {
const usbDetection = reqNative('usb-detection');
fillAttachedYubiKeys();
usbDetection.registerAdded(usbDeviceAttached);
usbDetection.registerRemoved(usbDeviceDetached);
usbDetection.startMonitoring();
fillAttachedYubiKeys();
usbListenerRunning = true;
},

Loading…
Cancel
Save