From a014b4e6cbe9c397233c2ffe16c4417c68d1f15f Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Thu, 23 Feb 2023 12:26:25 -0600
Subject: Tweak approach to the viewheader

---
 src/view/com/util/ViewHeader.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/view/com/util/ViewHeader.tsx')

diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx
index 259196b66..0c3ca0bf5 100644
--- a/src/view/com/util/ViewHeader.tsx
+++ b/src/view/com/util/ViewHeader.tsx
@@ -8,6 +8,7 @@ import {useStores} from 'state/index'
 import {usePalette} from 'lib/hooks/usePalette'
 import {useAnimatedValue} from 'lib/hooks/useAnimatedValue'
 import {useAnalytics} from 'lib/analytics'
+import {isDesktopWeb} from '../../../platform/detection'
 
 const BACK_HITSLOP = {left: 10, top: 10, right: 30, bottom: 10}
 
@@ -33,6 +34,9 @@ export const ViewHeader = observer(function ViewHeader({
   if (typeof canGoBack === 'undefined') {
     canGoBack = store.nav.tab.canGoBack
   }
+  if (isDesktopWeb) {
+    return undefined
+  }
   return (
     <Container hideOnScroll={hideOnScroll || false}>
       <TouchableOpacity
-- 
cgit 1.4.1

