Skip to content

Commit 0628a22

Browse files
committed
default value from local storage
1 parent c9f558a commit 0628a22

File tree

1 file changed

+3
-1
lines changed
  • packages/next/src/next-devtools/dev-overlay

1 file changed

+3
-1
lines changed

packages/next/src/next-devtools/dev-overlay/shared.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ export const INITIAL_OVERLAY_STATE: Omit<
211211
versionInfo: { installed: '0.0.0', staleness: 'unknown' },
212212
debugInfo: { devtoolsFrontendUrl: undefined },
213213
isDevToolsPanelOpen: false,
214-
indicatorPosition: 'bottom-left',
214+
indicatorPosition:
215+
(localStorage.getItem(STORAGE_KEY_POSITION) as DevToolsIndicatorPosition) ??
216+
'bottom-left',
215217
}
216218

217219
function getInitialState(

0 commit comments

Comments
 (0)