From b7c92ce3ffa7ab32b55265887175f082bf887dd1 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 7 Feb 2019 16:31:44 +0000 Subject: [PATCH] Abort embedded page load for null URL --- src/components/structures/EmbeddedPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/structures/EmbeddedPage.js b/src/components/structures/EmbeddedPage.js index bb671094db..b73ce21d5e 100644 --- a/src/components/structures/EmbeddedPage.js +++ b/src/components/structures/EmbeddedPage.js @@ -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.