From fc3f091e2d932e4e67e03356665eb61b68a8170f Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 13 Jul 2022 08:19:52 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20internal=20css=20leaking?= =?UTF-8?q?=20outside=20iframe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/Team/issues/1675 - the main css file was imported in the root js script, causing it to be included alongside the final minified bundle and get injected outside the iframe. - the main css is pushed as a separate file outside of bundle and used directly as link inside the iframe instead --- apps/comments-ui/src/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/comments-ui/src/index.js b/apps/comments-ui/src/index.js index ceb011e8ea..79ff834d7c 100644 --- a/apps/comments-ui/src/index.js +++ b/apps/comments-ui/src/index.js @@ -1,6 +1,5 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import './index.css'; import App from './App'; const ROOT_DIV_ID = 'ghost-comments-root';