pinokiod 5.0.2 → 5.0.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7457,7 +7457,9 @@ const rerenderMenuSection = (container, html) => {
7457
7457
  renderDiff(diffJson, diffBody)
7458
7458
  const openBtn = diffViewer.querySelector('.pinokio-git-diff-open-file')
7459
7459
  if (openBtn) {
7460
- openBtn.addEventListener('click', async () => {
7460
+ openBtn.addEventListener('click', async (event) => {
7461
+ event.preventDefault()
7462
+ event.stopPropagation()
7461
7463
  const repoKey = openBtn.getAttribute('data-open-repo') || repoParam || ''
7462
7464
  const rel = openBtn.getAttribute('data-open-relpath') || ''
7463
7465
  if (!repoKey || !rel) return