mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Change output path format of html file by platform
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user