From 5f1c6342f2099623671849daddb567b901fbc48d Mon Sep 17 00:00:00 2001 From: Pablo Estevez Date: Wed, 13 May 2020 16:23:16 -0400 Subject: [PATCH] Set preview web preferences --- src/js/components/Browser.react.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/components/Browser.react.js b/src/js/components/Browser.react.js index 18f3679..1b43957 100644 --- a/src/js/components/Browser.react.js +++ b/src/js/components/Browser.react.js @@ -25,7 +25,7 @@ import { RuleUtils } from '../utils/RuleUtils'; type State = { displayURL: string, showPreview: boolean, - progress: number + progress: number, }; class Browser extends React.Component { @@ -277,6 +277,7 @@ class Browser extends React.Component { id="webview" src={this.props.editor.url} preload={path.join(__dirname, '../injected.js')} + webpreferences="sandbox=yes, nodeIntegration=no, contextIsolation=yes" />
{this.state.showPreview ? '>' : '<'}