1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-08 07:01:04 +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:
Vladimir Volek 2019-03-28 14:37:30 +01:00 committed by GitHub
commit d55ad6e415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,7 @@ class DeviceMenu extends PureComponent<Props> {
window.addEventListener('mousedown', this.mouseDownHandler, false); window.addEventListener('mousedown', this.mouseDownHandler, false);
// window.addEventListener('blur', this.blurHandler, false); // window.addEventListener('blur', this.blurHandler, false);
const { transport } = this.props.connect; const { transport } = this.props.connect;
if (transport.type && transport.version.indexOf('webusb') >= 0) if (deviceUtils.isWebUSB(transport)) TrezorConnect.renderWebUSBButton();
TrezorConnect.renderWebUSBButton();
} }
componentDidUpdate() { componentDidUpdate() {