let devices = await navigator.hid.getDevices();
devices.forEach((device) => {
console.log(`HID: ${device.opened}`);
});HIDDevice: opened property / notebook
HIDDevice: opened property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.