Skip to content

Commit

Permalink
🐛 (admin) open chart in desktop preview mode by default (#3510)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored Apr 18, 2024
1 parent 9c6abaa commit f8994f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adminSiteClient/ChartEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ export class ChartEditor {
constructor(props: { manager: ChartEditorManager }) {
this.manager = props.manager
this.previewMode =
localStorage.getItem("editorPreviewMode") === "desktop"
? "desktop"
: "mobile"
localStorage.getItem("editorPreviewMode") === "mobile"
? "mobile"
: "desktop"
when(
() => this.grapher.isReady,
() => (this.savedGrapherJson = JSON.stringify(this.grapher.object))
Expand Down

0 comments on commit f8994f2

Please sign in to comment.