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

fixed code style error

This commit is contained in:
Evan Miller
2018-12-03 16:55:05 -05:00
parent dceed7d84d
commit ce9f76fa63

View File

@@ -355,7 +355,7 @@ export default class MarkdownPreview extends React.Component {
handleSaveAsPdf () { handleSaveAsPdf () {
this.exportAsDocument('pdf', (noteContent, exportTasks) => { this.exportAsDocument('pdf', (noteContent, exportTasks) => {
const printout = new remote.BrowserWindow({show: false}) const printout = new remote.BrowserWindow({show: false})
printout.loadURL('data:text/html;charset=UTF-8,'+this.htmlContentFormatter(noteContent, exportTasks)) printout.loadURL('data:text/html;charset=UTF-8,' + this.htmlContentFormatter(noteContent, exportTasks))
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
printout.webContents.on('did-finish-load', () => { printout.webContents.on('did-finish-load', () => {
printout.webContents.printToPDF({}, (err, data) => { printout.webContents.printToPDF({}, (err, data) => {