File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ PortHandler.initialize = function () {
42
42
// Use serial for all protocol events
43
43
serial . addEventListener ( "addedDevice" , ( event ) => {
44
44
// Extract the real detail, handling the new structure
45
- const detail = event . detail . value !== undefined ? event . detail . value : event . detail ;
45
+ const detail = event . detail ;
46
46
47
47
// Determine the device type based on its properties
48
48
if ( detail ?. path ?. startsWith ( "bluetooth" ) ) {
@@ -56,7 +56,7 @@ PortHandler.initialize = function () {
56
56
57
57
serial . addEventListener ( "removedDevice" , ( event ) => {
58
58
// Extract the real detail, handling the new structure
59
- const detail = event . detail . value !== undefined ? event . detail . value : event . detail ;
59
+ const detail = event . detail ;
60
60
61
61
// Determine the device type based on its properties
62
62
if ( detail ?. path ?. startsWith ( "bluetooth" ) ) {
You can’t perform that action at this time.
0 commit comments