Skip to content

Commit aeada28

Browse files
committed
default value from local storage
1 parent 9540747 commit aeada28

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
@@ -213,7 +213,9 @@ export const INITIAL_OVERLAY_STATE: Omit<
213213
versionInfo: { installed: '0.0.0', staleness: 'unknown' },
214214
debugInfo: { devtoolsFrontendUrl: undefined },
215215
isDevToolsPanelOpen: false,
216-
indicatorPosition: 'bottom-left',
216+
indicatorPosition:
217+
(localStorage.getItem(STORAGE_KEY_POSITION) as DevToolsIndicatorPosition) ??
218+
'bottom-left',
217219
}
218220

219221
function getInitialState(

0 commit comments

Comments
 (0)