mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
fix path Linux
This commit is contained in:
@@ -45,6 +45,7 @@ const CSS_FILES = [
|
||||
`${appPath}/node_modules/codemirror/lib/codemirror.css`,
|
||||
`${appPath}/node_modules/react-image-carousel/lib/css/main.min.css`
|
||||
]
|
||||
const win = global.process.platform === 'win32'
|
||||
|
||||
function buildStyle (
|
||||
fontFamily,
|
||||
@@ -677,7 +678,9 @@ export default class MarkdownPreview extends React.Component {
|
||||
GetCodeThemeLink (name) {
|
||||
const theme = consts.THEMES.find(theme => theme.name === name)
|
||||
|
||||
return theme ? theme.path : `${appPath}/node_modules/codemirror/theme/elegant.css`
|
||||
return theme
|
||||
? (win ? theme.path : `../${theme.path}`)
|
||||
: `${appPath}/node_modules/codemirror/theme/elegant.css`
|
||||
}
|
||||
|
||||
rewriteIframe () {
|
||||
|
||||
Reference in New Issue
Block a user