mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
fixed open empty link 2
This commit is contained in:
committed by
Junyoung Choi
parent
ba913b77e7
commit
8cd24a5734
@@ -255,7 +255,7 @@ export default class MarkdownPreview extends React.Component {
|
||||
return
|
||||
}
|
||||
// No contextMenu was passed to us -> execute our own link-opener
|
||||
if (event.target.tagName.toLowerCase() === 'a') {
|
||||
if (event.target.tagName.toLowerCase() === 'a' && event.target.getAttribute('href')) {
|
||||
const href = event.target.href
|
||||
const isLocalFile = href.startsWith('file:')
|
||||
if (isLocalFile) {
|
||||
|
||||
Reference in New Issue
Block a user