aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-13 03:51:05 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-13 04:14:40 +0800
commit57c91435a7357165441252acfffcdaff6e54e422 (patch)
tree5d2aac95657c39a8a36d8e8f775123acd074e5fe /ui/app/components
parent4b654669e692665aba88a14cb5804370dbfd4a80 (diff)
downloadtangerine-wallet-browser-57c91435a7357165441252acfffcdaff6e54e422.tar.gz
tangerine-wallet-browser-57c91435a7357165441252acfffcdaff6e54e422.tar.zst
tangerine-wallet-browser-57c91435a7357165441252acfffcdaff6e54e422.zip
Substitute isMascara check for explicit check if user is on mobile browser.
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/tx-view.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js
index bd52ac4c2..0f8a54a74 100644
--- a/ui/app/components/tx-view.js
+++ b/ui/app/components/tx-view.js
@@ -15,6 +15,7 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(TxView)
function mapStateToProps (state) {
const sidebarOpen = state.appState.sidebarOpen
+ const isMascara = state.appState.isMascara
const identities = state.metamask.identities
const accounts = state.metamask.accounts
@@ -141,7 +142,7 @@ TxView.prototype.render = function () {
identity.name,
]),
- !isMobileBrowser() && h('div.open-in-browser', {
+ !isMascara && h('div.open-in-browser', {
onClick: () => global.platform.openExtensionInBrowser(),
}, [h('img', { src: 'images/open.svg' })]),