From 5650b8d7168a68a965a5e92756fda37f9bf64d9f Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 24 May 2021 19:13:37 +0530 Subject: [PATCH] =?UTF-8?q?Revert=20"=E2=9C=A8=20Added=20firing=20of=20`po?= =?UTF-8?q?rtal-ready`=20post=20message=20for=20preview"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 347805d4d0ecc9a488dc7ab42ce647346d063414. --- ghost/portal/src/App.js | 9 --------- 1 file changed, 9 deletions(-) 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