Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Set preview web preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
pestevez committed May 13, 2020
1 parent 2412186 commit 5f1c634
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/components/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { RuleUtils } from '../utils/RuleUtils';
type State = {
displayURL: string,
showPreview: boolean,
progress: number
progress: number,
};

class Browser extends React.Component<Props, State> {
Expand Down Expand Up @@ -277,6 +277,7 @@ class Browser extends React.Component<Props, State> {
id="webview"
src={this.props.editor.url}
preload={path.join(__dirname, '../injected.js')}
webpreferences="sandbox=yes, nodeIntegration=no, contextIsolation=yes"
/>
<div className="tab" role="presentation" onClick={this.togglePreview}>
<span>{this.state.showPreview ? '>' : '<'}</span>
Expand Down

0 comments on commit 5f1c634

Please # to comment.