We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba913b7 commit 8cd24a5Copy full SHA for 8cd24a5
browser/components/MarkdownPreview.js
@@ -255,7 +255,7 @@ export default class MarkdownPreview extends React.Component {
255
return
256
}
257
// No contextMenu was passed to us -> execute our own link-opener
258
- if (event.target.tagName.toLowerCase() === 'a') {
+ if (event.target.tagName.toLowerCase() === 'a' && event.target.getAttribute('href')) {
259
const href = event.target.href
260
const isLocalFile = href.startsWith('file:')
261
if (isLocalFile) {
0 commit comments