mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
fixed empty link point to main file
This commit is contained in:
committed by
Junyoung Choi
parent
3634194e4d
commit
48bb9d3242
@@ -1000,7 +1000,7 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
||||||
const href = e.target.href
|
const href = e.target.getAttribute('href')
|
||||||
const linkHash = href.split('/').pop()
|
const linkHash = href.split('/').pop()
|
||||||
|
|
||||||
const regexNoteInternalLink = /main.html#(.+)/
|
const regexNoteInternalLink = /main.html#(.+)/
|
||||||
|
|||||||
Reference in New Issue
Block a user