mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-02 13:18:19 +00:00
renderwebusb button when connect trasport type is webusb
This commit is contained in:
parent
c2686ff682
commit
11bbafc92b
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user