aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/create-account/connect-hardware/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/pages/create-account/connect-hardware/index.js')
-rw-r--r--ui/app/components/pages/create-account/connect-hardware/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/pages/create-account/connect-hardware/index.js b/ui/app/components/pages/create-account/connect-hardware/index.js
index fa9cf4894..689e88f2e 100644
--- a/ui/app/components/pages/create-account/connect-hardware/index.js
+++ b/ui/app/components/pages/create-account/connect-hardware/index.js
@@ -16,6 +16,7 @@ class ConnectHardwareForm extends Component {
btnText: context.t('connectToTrezor'),
selectedAccount: null,
accounts: [],
+ browserSupported: true,
}
}
@@ -78,6 +79,9 @@ class ConnectHardwareForm extends Component {
}
})
.catch(e => {
+ if (e === 'Window blocked') {
+ this.setState({ browserSupported: false })
+ }
this.setState({ btnText: this.context.t('connectToTrezor') })
})
}
@@ -125,6 +129,7 @@ class ConnectHardwareForm extends Component {
return h(ConnectScreen, {
connectToTrezor: this.connectToTrezor,
btnText: this.state.btnText,
+ browserSupported: this.state.browserSupported,
})
}