mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
address review comments - add production/dev main.html & remove comments
This commit is contained in:
@@ -1020,7 +1020,8 @@ export default class MarkdownPreview extends React.Component {
|
||||
|
||||
if (!href) return
|
||||
|
||||
const regexNoteInternalLink = /main.html#(.+)/
|
||||
const regexNoteInternalLink = process.env.NODE_ENV === 'production' ? /main.production.html#(.+)/ : /main.development.html#(.+)/
|
||||
|
||||
if (regexNoteInternalLink.test(linkHash)) {
|
||||
const targetId = mdurl.encode(linkHash.match(regexNoteInternalLink)[1])
|
||||
const targetElement = this.refs.root.contentWindow.document.getElementById(
|
||||
|
||||
Reference in New Issue
Block a user