New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requestDevice signature mistake in the spec #3
Comments
The My suggestion is to add an additional layer of indirection between |
shouldn't it be named There is something inconsistent in the IDL vs all resources/implementations, unless I missed something:
let requestButton = document.getElementById('request-hid-device');
requestButton.addEventListener('click', async () => {
let device;
try {
device = await navigator.hid.requestDevice({ filters: [{
vendorId: 0xABCD,
productId: 0x1234,
usagePage: 0x0C,
usage: 0x01
}]});
} catch (error) {
console.log('No device was selected.');
}
if (device !== undefined) {
console.log('HID: ${device.productName}');
}
});
|
The Chromium implementation is changing to match the specification in this patch: https://chromium-review.googlesource.com/c/chromium/src/+/1966496 |
@reillyeon good to know. thanks. |
I think this issue can be closed. |
should be
The text was updated successfully, but these errors were encountered: