Skip to content

Commit

Permalink
Substitute isMascara check for explicit check if user is on mobile br…
Browse files Browse the repository at this point in the history
…owser.
  • Loading branch information
danjm authored and chikeichan committed Dec 12, 2017
1 parent 4b65466 commit 57c9143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion ui/app/components/tx-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' })]),

Expand Down
12 changes: 0 additions & 12 deletions ui/lib/is-mobile-browser.js

This file was deleted.

0 comments on commit 57c9143

Please sign in to comment.