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