From df302206ddefae9b9e6164c16dcb501dc1c02b5e Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 22 Jun 2018 18:18:15 +0000 Subject: [PATCH] Electron: Allow HTML in Markdown documents in a secure way --- ElectronClient/app/gui/NoteText.jsx | 2 +- ElectronClient/app/gui/note-viewer/index.html | 1 - ElectronClient/app/gui/note-viewer/preload.js | 4 ++++ ReactNativeClient/lib/MdToHtml.js | 6 +++--- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 ElectronClient/app/gui/note-viewer/preload.js diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index 690375daf..b985ed464 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -1282,7 +1282,7 @@ class NoteTextComponent extends React.Component { const viewer = { this.webview_ref(elem); } } /> diff --git a/ElectronClient/app/gui/note-viewer/index.html b/ElectronClient/app/gui/note-viewer/index.html index 04eb84b81..764307e60 100644 --- a/ElectronClient/app/gui/note-viewer/index.html +++ b/ElectronClient/app/gui/note-viewer/index.html @@ -34,7 +34,6 @@