mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-07 06:40:54 +00:00
Merge pull request #471 from trezor/fix/web-usb-button
Fix/renderwebusb button in device menu when connect trasport type is webusb
This commit is contained in:
commit
d55ad6e415
@ -58,8 +58,7 @@ class DeviceMenu extends PureComponent<Props> {
|
||||
window.addEventListener('mousedown', this.mouseDownHandler, false);
|
||||
// window.addEventListener('blur', this.blurHandler, false);
|
||||
const { transport } = this.props.connect;
|
||||
if (transport.type && transport.version.indexOf('webusb') >= 0)
|
||||
TrezorConnect.renderWebUSBButton();
|
||||
if (deviceUtils.isWebUSB(transport)) TrezorConnect.renderWebUSBButton();
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
|
Loading…
Reference in New Issue
Block a user