diff --git a/ghost/portal/src/App.js b/ghost/portal/src/App.js index 23f27f9ac2..e5de7e988d 100644 --- a/ghost/portal/src/App.js +++ b/ghost/portal/src/App.js @@ -57,7 +57,6 @@ export default class App extends React.Component { if (this.state.initStatus === 'success' && prevState.initStatus !== this.state.initStatus) { const {siteUrl} = this.props; const contextState = this.getContextFromState(); - this.sendPortalReadyEvent(siteUrl); handleDataAttributes({ siteUrl, site: contextState.site, @@ -74,14 +73,6 @@ export default class App extends React.Component { }); } - sendPortalReadyEvent(siteUrl) { - const siteOrigin = ((new URL(siteUrl)).origin).replace(/\/$/, ''); - - if (window.self !== window.parent) { - window.parent.postMessage('portal-ready', siteOrigin); - } - } - /** Setup custom trigger buttons handling on page */ setupCustomTriggerButton() { // Handler for custom buttons