@youtyan/code-viewer 0.1.48 → 0.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/app.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youtyan/code-viewer",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "Local browser-based code and git diff viewer",
5
5
  "type": "module",
6
6
  "bin": {
package/web/app.js CHANGED
@@ -13500,7 +13500,7 @@ ${frontmatter.yaml}
13500
13500
  b2.classList.toggle("active", b2.dataset.view === STATE.sbView);
13501
13501
  });
13502
13502
  $$(".sb-tree-action").forEach((b2) => {
13503
- b2.disabled = STATE.sbView !== "tree" || !STATE.files.length;
13503
+ b2.disabled = STATE.sbView !== "tree" || !files.length;
13504
13504
  });
13505
13505
  if (STATE.activeFile)
13506
13506
  markActive(STATE.activeFile);