1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Revert "Revert "Update website""

This reverts commit 49b56e84a7.
This commit is contained in:
Laurent Cozic
2019-02-27 23:38:50 +00:00
parent 49b56e84a7
commit 770a435029
17 changed files with 499 additions and 42 deletions

View File

@ -96,6 +96,8 @@ class NoteBodyViewer extends Component {
let html = this.mdToHtml_.render(note ? note.body : '', this.props.webViewStyle, mdOptions);
const injectedJs = this.mdToHtml_.injectedJavaScript();
html = `
<!DOCTYPE html>
<html>
@ -146,6 +148,7 @@ class NoteBodyViewer extends Component {
scalesPageToFit={Platform.OS !== 'ios'}
style={webViewStyle}
source={source}
injectedJavaScript={injectedJs}
originWhitelist={['file://*', './*', 'http://*', 'https://*']}
mixedContentMode="always"
allowFileAccess={true}