Abort embedded page load for null URL

This commit is contained in:
J. Ryan Stinnett 2019-02-07 16:31:44 +00:00
parent 843f86fc1c
commit b7c92ce3ff

View file

@ -57,6 +57,10 @@ export default class EmbeddedPage extends React.PureComponent {
componentWillMount() {
this._unmounted = false;
if (!this.props.url) {
return;
}
// we use request() to inline the homepage into the react component
// so that it can inherit CSS and theming easily rather than mess around
// with iframes and trying to synchronise document.stylesheets.