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() {
|
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…
Add table
Add a link
Reference in a new issue