Skip to content

Commit 6fb99bb

Browse files
jeff-zuckerclaude
andcommitted
sol-live-edit: always open with both panels
_loadCfg forces cfg.view to 'both' after loading saved config, so the editor never starts in a prior "Editor only" / "Preview only" state. Key bindings still persist. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b94d542 commit 6fb99bb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/podz-extras.bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sol-live-edit.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/sol-live-edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class SolLiveEdit extends HTMLElement {
375375
}
376376
}
377377

378-
_loadCfg(){try{Object.assign(this._cfg,JSON.parse(localStorage.getItem('sle-cfg')||'{}'));}catch(_){}}
378+
_loadCfg(){try{Object.assign(this._cfg,JSON.parse(localStorage.getItem('sle-cfg')||'{}'));}catch(_){}this._cfg.view='both';}
379379
_saveCfg(){try{localStorage.setItem('sle-cfg',JSON.stringify(this._cfg));}catch(_){}}
380380
_setZoom(z){
381381
this._zoom=Math.max(0.2,Math.min(5.0,Math.round(z*10)/10));

0 commit comments

Comments
 (0)