Skip to content

Commit

Permalink
WIP: transport name
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlesisz committed Nov 29, 2024
1 parent 999db57 commit ed423ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/suite/src/utils/suite/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ import { AppState } from 'src/types/suite';

export const isWebUsb = (transport?: AppState['suite']['transport']) =>
!!(transport && transport.type && transport.type === 'WebUsbTransport');

export const isBluetoothTransport = (transport?: AppState['suite']['transport']) =>
!!(transport && transport.type && transport.type === 'BluetoothTransport');

0 comments on commit ed423ce

Please sign in to comment.