Closed abeck70 closed 6 years ago
Test successfully with a custom webusb device
Thanks for the PR!
Can this be simplified to just:
try {
configDescriptor = device.configDescriptor;
deviceDescriptor = device.deviceDescriptor;
configs = device.allConfigDescriptors;
} catch (_e) {
return resolve(null);
}
Ah yes of course. Simplified and re-tested.
Awesome! Fixes #21
by preceding with catch-able error in configDescriptor call