1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

fixed empty link point to main file

This commit is contained in:
Nguyễn Việt Hưng
2019-04-21 11:10:29 +12:00
committed by Junyoung Choi
parent 3634194e4d
commit 48bb9d3242

View File

@@ -1000,7 +1000,7 @@ export default class MarkdownPreview extends React.Component {
e.preventDefault()
e.stopPropagation()
const href = e.target.href
const href = e.target.getAttribute('href')
const linkHash = href.split('/').pop()
const regexNoteInternalLink = /main.html#(.+)/