Skip to content

Commit

Permalink
[MWPW-163381] : Removed lorem ipsum text check from preflight modal (#…
Browse files Browse the repository at this point in the history
…3417)

Removed lorem ipsum text check from preflight div
  • Loading branch information
sharmeeatadobe authored Jan 13, 2025
1 parent be5c164 commit 746f58e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/blocks/preflight/panels/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 746f58e

Please sign in to comment.