Abort embedded page load for null URL
parent
843f86fc1c
commit
b7c92ce3ff
|
@ -57,6 +57,10 @@ export default class EmbeddedPage extends React.PureComponent {
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
this._unmounted = false;
|
this._unmounted = false;
|
||||||
|
|
||||||
|
if (!this.props.url) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// we use request() to inline the homepage into the react component
|
// we use request() to inline the homepage into the react component
|
||||||
// so that it can inherit CSS and theming easily rather than mess around
|
// so that it can inherit CSS and theming easily rather than mess around
|
||||||
// with iframes and trying to synchronise document.stylesheets.
|
// with iframes and trying to synchronise document.stylesheets.
|
||||||
|
|
Loading…
Reference in New Issue