1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00

Set theme based background color to note webview to avoid white background on scroll when dark theme is enabled. (#1230)

This commit is contained in:
ruuti 2019-02-24 12:07:49 +01:00 committed by Laurent Cozic
parent e2e4e62c4f
commit 99da184ba5

View File

@ -108,7 +108,7 @@ class NoteBodyViewer extends Component {
</html>
`;
let webViewStyle = {}
let webViewStyle = {'backgroundColor': this.props.webViewStyle.backgroundColor}
// On iOS, the onLoadEnd() event is never fired so always
// display the webview (don't do the little trick
// to avoid the white flash).