diff --git a/ghost/portal/src/components/Frame.js b/ghost/portal/src/components/Frame.js index 0813e8a979..3f76de9a21 100644 --- a/ghost/portal/src/components/Frame.js +++ b/ghost/portal/src/components/Frame.js @@ -15,10 +15,12 @@ export default class Frame extends Component { } setupFrameBaseStyle() { - this.iframeHtml = this.node.contentDocument.documentElement; - this.iframeHead = this.node.contentDocument.head; - this.iframeRoot = this.node.contentDocument.body; - this.forceUpdate(); + if (this.node.contentDocument) { + this.iframeHtml = this.node.contentDocument.documentElement; + this.iframeHead = this.node.contentDocument.head; + this.iframeRoot = this.node.contentDocument.body; + this.forceUpdate(); + } } render() {