1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge branch 'master' into export-note-with-images

# Conflicts:
#	browser/components/MarkdownPreview.js
This commit is contained in:
Nikolay Lopin
2018-02-05 12:59:45 +03:00
87 changed files with 695 additions and 2445 deletions

View File

@@ -46,9 +46,7 @@ function exportFolder (storageKey, folderKey, fileType, exportDir) {
.filter(note => note.folder === folderKey && note.isTrashed === false && note.type === 'MARKDOWN_NOTE')
.forEach(snippet => {
const notePath = path.join(exportDir, `${snippet.title}.${fileType}`)
fs.writeFileSync(notePath, snippet.content, (err) => {
if (err) throw err
})
fs.writeFileSync(notePath, snippet.content)
})
return {