File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export default defineComponent({
174
174
const onChangePort = (event ) => {
175
175
const value = event .target .value ;
176
176
if (value === " requestpermission" ) {
177
- EventBus .$emit (" ports-input:request-permission" );
177
+ EventBus .$emit (" ports-input:request-permission-serial " );
178
178
} else if (value === " requestpermissionbluetooth" ) {
179
179
EventBus .$emit (" ports-input:request-permission-bluetooth" );
180
180
} else if (value === " requestpermissionusb" ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const PortHandler = new (function () {
51
51
52
52
PortHandler . initialize = function ( ) {
53
53
EventBus . $on ( "ports-input:request-permission-bluetooth" , ( ) => this . requestDevicePermission ( "webbluetooth" ) ) ;
54
- EventBus . $on ( "ports-input:request-permission" , ( ) => this . requestDevicePermission ( "webserial" ) ) ;
54
+ EventBus . $on ( "ports-input:request-permission-serial " , ( ) => this . requestDevicePermission ( "webserial" ) ) ;
55
55
EventBus . $on ( "ports-input:request-permission-usb" , ( ) => this . requestDevicePermission ( "usb" ) ) ;
56
56
EventBus . $on ( "ports-input:change" , this . onChangeSelectedPort . bind ( this ) ) ;
57
57
You can’t perform that action at this time.
0 commit comments