1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-22 05:51:18 +00:00

Merge branch 'master' into feature/trezor-ui-components

This commit is contained in:
slowbackspace 2019-03-28 15:01:55 +01:00
commit c3a7fbec25

View File

@ -57,8 +57,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() {