diff --git a/common/modules/mixly-modules/web/hid.js b/common/modules/mixly-modules/web/hid.js index 3a9ddd2f..116f602b 100644 --- a/common/modules/mixly-modules/web/hid.js +++ b/common/modules/mixly-modules/web/hid.js @@ -41,6 +41,9 @@ class WebHID extends Serial { const devices = await navigator.hid.requestDevice({ filters: [] }); + if (!devices.length) { + return; + } this.addPort(devices[0]); this.refreshPorts(); }