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

fixed review comments

This commit is contained in:
Maurits Lourens
2017-12-13 17:20:22 +01:00
parent 6a9d4ae0fd
commit 6fba62d062
2 changed files with 3 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ export default class MarkdownPreview extends React.Component {
}
handleSaveAsHtml () {
this.exportAsDocument('html', function formatHtml (value) {
this.exportAsDocument('html', (value) => {
return this.refs.root.contentWindow.document.documentElement.outerHTML
})
}
@@ -191,7 +191,7 @@ export default class MarkdownPreview extends React.Component {
],
properties: ['openFile', 'createDirectory']
}
var value = formatter ? formatter.call(this, this.props.value) : this.props.value
const value = formatter ? formatter.call(this, this.props.value) : this.props.value
dialog.showSaveDialog(remote.getCurrentWindow(), options,
(filename) => {

View File

@@ -108,7 +108,7 @@ const file = {
}
},
{
label: 'Html (.html)',
label: 'HTML (.html)',
click () {
mainWindow.webContents.send('list:isMarkdownNote')
mainWindow.webContents.send('export:save-html')