mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
destroy window after printing
This commit is contained in:
@@ -361,6 +361,7 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
printout.webContents.printToPDF({}, (err, data) => {
|
printout.webContents.printToPDF({}, (err, data) => {
|
||||||
if (err) reject(err)
|
if (err) reject(err)
|
||||||
else resolve(data)
|
else resolve(data)
|
||||||
|
printout.destroy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user