Skip to content

Commit

Permalink
fix: add temporary debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 30, 2024
1 parent 28e461e commit 0a7b268
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metatags/seo-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ class SeoChecks {
*/
checkForH1Count(url, pageTags) {
if (pageTags[H1]?.length > 1) {
console.log('Detected duplicate H1');
this.detectedTags[H1][MULTIPLE_H1_COUNT] ??= [];
this.detectedTags[H1][MULTIPLE_H1_COUNT].push({
pageUrl: url,
tagContent: JSON.stringify(pageTags[H1]),
});
console.log(`Check detected tags ${JSON.stringify(this.detectedTags[H1])}`);
}
}

Expand Down

0 comments on commit 0a7b268

Please sign in to comment.