Abort embedded page load for null URL
This commit is contained in:
parent
843f86fc1c
commit
b7c92ce3ff
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue