Skip to content

Commit d9b6be5

Browse files
committed
Default DevTools to closed and persist its visibility
1 parent e204386 commit d9b6be5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

client/src/app/AppShell.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ import {
8686
import { useElementSize } from "../shared/hooks/useElementSize";
8787
import {
8888
ACCESSIBILITY_SOURCE_STORAGE_KEY,
89-
CHROME_DEVTOOLS_VISIBLE_STORAGE_KEY,
9089
clearLegacyVolatileUiState,
9190
DEFAULT_VIEWPORT_STATE,
9291
DEBUG_VISIBLE_STORAGE_KEY,
@@ -99,7 +98,6 @@ import {
9998
sanitizeAccessibilitySources,
10099
TOUCH_OVERLAY_VISIBLE_STORAGE_KEY,
101100
viewportStateForUDID,
102-
WEBKIT_INSPECTOR_VISIBLE_STORAGE_KEY,
103101
writePersistedUiState,
104102
writeStoredFlag,
105103
} from "./uiState";
@@ -355,10 +353,7 @@ export function AppShell({
355353
readStoredFlag(HIERARCHY_VISIBLE_STORAGE_KEY),
356354
);
357355
const [devToolsVisible, setDevToolsVisible] = useState(
358-
() =>
359-
readStoredFlag(DEVTOOLS_VISIBLE_STORAGE_KEY) ||
360-
readStoredFlag(CHROME_DEVTOOLS_VISIBLE_STORAGE_KEY) ||
361-
readStoredFlag(WEBKIT_INSPECTOR_VISIBLE_STORAGE_KEY),
356+
() => readStoredFlag(DEVTOOLS_VISIBLE_STORAGE_KEY, false),
362357
);
363358
const [selectedUDID, setSelectedUDID] = useState(initialSelectedUDID ?? "");
364359
const [search, setSearch] = useState("");

0 commit comments

Comments
 (0)