1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

updated to code to pass test

This commit is contained in:
Nguyễn Việt Hưng
2018-10-02 21:43:45 +07:00
parent 14fec7473a
commit 8936d8b517
4 changed files with 7 additions and 4 deletions

View File

@@ -483,7 +483,10 @@ export default class MarkdownPreview extends React.Component {
eventEmitter.on('export:save-md', this.saveAsMdHandler)
eventEmitter.on('export:save-html', this.saveAsHtmlHandler)
eventEmitter.on('print', this.printHandler)
eventEmitter.on('config-renew', this.rewriteIframe.bind(this))
eventEmitter.on('config-renew', () => {
this.markdown.updateConfig()
this.rewriteIframe()
})
}
componentWillUnmount () {