1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-14 23:26:58 +02:00

Mobile: Reload note when resource got downloaded. Also fixed Android build script to make it work in macOS.

This commit is contained in:
Laurent Cozic
2018-10-12 23:25:11 +01:00
parent ffd03bf34c
commit 7f51035f91
7 changed files with 57 additions and 6 deletions

View File

@@ -64,6 +64,11 @@ class NoteBodyViewer extends Component {
return (safeGetNoteProp(this.props, 'body') + '').length !== (safeGetNoteProp(nextProps, 'body') + '').length;
}
rebuildMd() {
this.mdToHtml_.clearCache();
this.forceUpdate();
}
render() {
const note = this.props.note;
const style = this.props.style;