Skip to content

Commit

Permalink
feat: changes for reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 12, 2024
1 parent 5ff695d commit 7a36bcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/metatags/seo-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ class SeoChecks {
this.allTags[H1][tag].count += 1;

if (this.allTags[H1][tag].count > 1) {
this.detectedTags[H1][NON_UNIQUE] ??= {};
this.detectedTags[H1][NON_UNIQUE][tag] = { ...this.allTags[H1][tag] };
if (!this.detectedTags[H1][0] || !this.detectedTags[H1][0][NON_UNIQUE]) {
this.detectedTags[H1].unshift({ [NON_UNIQUE]: {} });
}
this.detectedTags[H1][0][NON_UNIQUE][tag] = { ...this.allTags[H1][tag] };
}
});
}
Expand Down

0 comments on commit 7a36bcf

Please sign in to comment.