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 +1 -1
- package/server/views/app.ejs +3 -1
package/package.json
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -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
|