fix: init local device handlers even when connected to Socket Server
This commit is contained in:
@@ -150,9 +150,9 @@ class WebSerial extends Serial {
|
||||
this.addEventsListener = function () { }
|
||||
|
||||
this.init = function () {
|
||||
if (Env.hasSocketServer) {
|
||||
return;
|
||||
}
|
||||
// if (Env.hasSocketServer) {
|
||||
// return;
|
||||
// }
|
||||
if (platform === 'win32' && fullPlatform !== 'win10') {
|
||||
if (BOARD?.web?.devices?.hid) {
|
||||
this.devicesRegistry.register('hid', HID);
|
||||
|
||||
Reference in New Issue
Block a user