1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 12:18:09 +00:00

renderwebusb button when connect trasport type is webusb

This commit is contained in:
slowbackspace 2019-03-26 15:13:11 +01:00
parent c2686ff682
commit 11bbafc92b

View File

@ -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() {