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

Change output path format of html file by platform

This commit is contained in:
yamash723
2018-07-21 15:25:09 +09:00
parent 4f79f52524
commit ee6b9a223f

View File

@@ -225,7 +225,12 @@ export default class MarkdownPreview extends React.Component {
const attachmentsAbsolutePaths = attachmentManagement.getAbsolutePathsOfAttachmentsInContent(noteContent, this.props.storagePath)
files.forEach((file) => {
file = file.replace('file:///', '')
if (global.process.platform === 'win32') {
file = file.replace('file:///', '')
} else {
file = file.replace('file://', '')
}
exportTasks.push({
src: file,
dst: 'css'