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

change theme path usage and remove relative path

This commit is contained in:
AWolf81
2019-05-30 09:13:29 +02:00
committed by Junyoung Choi
parent bd52226ae2
commit 4af7106e01
3 changed files with 4 additions and 9 deletions

View File

@@ -677,11 +677,7 @@ export default class MarkdownPreview extends React.Component {
GetCodeThemeLink (name) {
const theme = consts.THEMES.find(theme => theme.name === name)
if (theme) {
return `${appPath}/${theme.path}`
} else {
return `${appPath}/node_modules/codemirror/theme/elegant.css`
}
return theme ? theme.path : `${appPath}/node_modules/codemirror/theme/elegant.css`
}
rewriteIframe () {