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,6 +972,7 @@ export function BrowserPane({
|
|||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.chromeRight}>
|
<View style={styles.chromeRight}>
|
||||||
|
{isDev ? (
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel={selectorActive ? "Cancel element selector" : "Select element"}
|
accessibilityLabel={selectorActive ? "Cancel element selector" : "Select element"}
|
||||||
@@ -982,6 +984,7 @@ export function BrowserPane({
|
|||||||
color={selectorActive ? theme.colors.accent : theme.colors.foregroundMuted}
|
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