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

address review comments - add production/dev main.html & remove comments

This commit is contained in:
AWolf81
2019-05-08 08:46:34 +02:00
committed by Junyoung Choi
parent f7a648903e
commit 333b0584a4
8 changed files with 163 additions and 18 deletions

View File

@@ -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(