diff --git a/entrypoints/popup/main.ts b/entrypoints/popup/main.ts index fe7a4b3..4624dfb 100644 --- a/entrypoints/popup/main.ts +++ b/entrypoints/popup/main.ts @@ -116,7 +116,7 @@ function mxtoolboxEmailHealthUrl(domain: string): string { } const DNS_TECHNIQUE_DISCLOSURE = - 'DNS queries use DNS-over-HTTPS (Cloudflare / Google). Entra probe uses HTTPS only; no MTA-STS policy files or cert inspection. DKIM probes *._domainkey first, then _domainkey and common selectors.'; + 'DNS queries use DNS-over-HTTPS (Cloudflare / Google). Entra probe uses HTTPS only; no MTA-STS policy files or cert inspection. DKIM probes _domainkey for null DKIM, then provider/common selectors, then *._domainkey.'; const WALL_OF_SHAME_REPO = 'jkerai1/DMARC-WallOfShame'; @@ -148,10 +148,14 @@ function openUrlInNewTab(url: string): void { a.remove(); } +function hasReportableDmarcIssue(result: CheckResult): boolean { + return result.full.dmarc.status !== 'pass'; +} + function renderResultFooterActions(result: CheckResult): string { - const showCastShame = result.full.dmarc.status === 'fail'; + const showCastShame = hasReportableDmarcIssue(result); const castShameBtn = showCastShame - ? `` + ? `` : ''; return `