Skip to content
Permalink
Browse files

fix: use isWebApp util for logout button in sidemenu

  • Loading branch information...
yaroslav-fedyshyn-nordwhale committed Nov 8, 2019
1 parent ca123c4 commit 531adedb097cd914b0e07a8b7bbc38ab2c1a5ad1
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/components/sidemenu/SideMenuPanel.js
@@ -11,6 +11,7 @@ import { Icon } from '../common'
import IconWrapper from '../common/modal/IconWrapper'
import { CLICK_DELETE_WALLET, fireEvent, LOGOUT } from '../../lib/analytics/analytics'
import LoadingIcon from '../common/modal/LoadingIcon'
import isWebApp from '../../lib/utils/isWebApp'
import SideMenuItem from './SideMenuItem'

type SideMenuPanelProps = {
@@ -162,12 +163,7 @@ const getMenuItems = ({ API, hideSidemenu, showDialog, navigation, store, theme
],
}

if (
!(
(window.matchMedia && window.matchMedia('(display-mode: standalone)').matches) ||
window.navigator.standalone === true
)
) {
if (!isWebApp) {
result.topItems.push({
icon: 'logout',
name: 'Logout',

0 comments on commit 531aded

Please sign in to comment.
You can’t perform that action at this time.