render()

in src/js/components/Browser.react.js [277:320]


  render() {
    return (
      <div className="browser">
        <form className="loader" onSubmit={this.go}>
          <button className="button navigation" onClick={this.goBack}>
            &lt;
          </button>
          <button className="button navigation" onClick={this.goForward}>
            &gt;
          </button>
          <input
            className="address"
            type="text"
            name="url"
            placeholder="Enter the URL of an article on your website"
            value={this.displayURL()}
            onChange={this.urlTyped}
          />
          <button className="button load" onClick={this.go}>
            Go
          </button>
        </form>
        <progress value={this.state.progress} />
        <div className="webviews">
          <webview
            ref={webview => {
              if (webview) {
                (webview: any).nodeintegration = true;
                this.webview = webview;
              }
            }}
            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>
          </div>
          <Preview {...this.props} hidden={!this.state.showPreview} />
        </div>
      </div>
    );
  }