From 746f58efcd8bb3a662fa8edb58140958286b74e2 Mon Sep 17 00:00:00 2001 From: Sharmee Biswas Date: Mon, 13 Jan 2025 17:51:19 +0530 Subject: [PATCH] [MWPW-163381] : Removed lorem ipsum text check from preflight modal (#3417) Removed lorem ipsum text check from preflight div --- libs/blocks/preflight/panels/seo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/blocks/preflight/panels/seo.js b/libs/blocks/preflight/panels/seo.js index a2cf70f3b2..c04c2899cd 100644 --- a/libs/blocks/preflight/panels/seo.js +++ b/libs/blocks/preflight/panels/seo.js @@ -127,7 +127,8 @@ async function checkBody() { async function checkLorem() { const result = { ...loremResult.value }; const { innerHTML } = document.documentElement; - if (innerHTML.includes('Lorem ipsum')) { + const htmlWithoutPreflight = innerHTML.replace(document.getElementById('preflight')?.outerHTML, ''); + if (htmlWithoutPreflight.includes('Lorem ipsum')) { result.icon = fail; result.description = 'Reason: Lorem ipsum is used on the page.'; } else {