Hide element picker in production
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
isElectronRuntime,
|
||||
type DesktopBrowserShortcutEvent,
|
||||
} from "@/desktop/host";
|
||||
import { isDev } from "@/constants/platform";
|
||||
import { useBrowserStore, normalizeWorkspaceBrowserUrl } from "@/stores/browser-store";
|
||||
|
||||
type ElectronWebview = HTMLElement & {
|
||||
@@ -971,6 +972,7 @@ export function BrowserPane({
|
||||
/>
|
||||
</View>
|
||||
<View style={styles.chromeRight}>
|
||||
{isDev ? (
|
||||
<Pressable
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={selectorActive ? "Cancel element selector" : "Select element"}
|
||||
@@ -982,6 +984,7 @@ export function BrowserPane({
|
||||
color={selectorActive ? theme.colors.accent : theme.colors.foregroundMuted}
|
||||
/>
|
||||
</Pressable>
|
||||
) : null}
|
||||
</View>
|
||||
</View>
|
||||
{browser?.lastError ? (
|
||||
|
||||
Reference in New Issue
Block a user