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.addEventsListener = function () { }
|
||||||
|
|
||||||
this.init = function () {
|
this.init = function () {
|
||||||
if (Env.hasSocketServer) {
|
// if (Env.hasSocketServer) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (platform === 'win32' && fullPlatform !== 'win10') {
|
if (platform === 'win32' && fullPlatform !== 'win10') {
|
||||||
if (BOARD?.web?.devices?.hid) {
|
if (BOARD?.web?.devices?.hid) {
|
||||||
this.devicesRegistry.register('hid', HID);
|
this.devicesRegistry.register('hid', HID);
|
||||||
|
|||||||
Reference in New Issue
Block a user