We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01ad733 commit 64906a5Copy full SHA for 64906a5
src/output/srcdoc.html
@@ -80,7 +80,7 @@
80
while (el && el.nodeName !== 'A') el = el.parentNode;
81
if (!el || el.nodeName !== 'A') return;
82
83
- if (el.hasAttribute('download') || el.getAttribute('rel') === 'external' || el.target) return;
+ if (el.hasAttribute('download') || el.getAttribute('rel') === 'external' || el.target || el.href.startsWith('javascript:')) return;
84
85
event.preventDefault();
86
0 commit comments