@youtyan/code-viewer 0.1.44 → 0.1.45

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 +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youtyan/code-viewer",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "Local browser-based code and git diff viewer",
5
5
  "type": "module",
6
6
  "bin": {
package/web/app.js CHANGED
@@ -16525,6 +16525,8 @@ ${frontmatter.yaml}
16525
16525
  }
16526
16526
  window.addEventListener("popstate", applyRouteFromLocation);
16527
16527
  document.querySelectorAll(".app-menu-item, .global-help-link").forEach((link2) => {
16528
+ if (link2.target === "_blank")
16529
+ return;
16528
16530
  link2.addEventListener("click", (e2) => {
16529
16531
  if (e2.metaKey || e2.ctrlKey || e2.shiftKey || e2.altKey || e2.button !== 0)
16530
16532
  return;