count iframes only if there isn't an error

This commit is contained in:
Joe Lothan 2026-05-20 00:29:28 -04:00
parent 3264288752
commit 0c9ad5bfd6

View file

@ -171,7 +171,7 @@ func main() {
stats.TitlesFound.Add(1) stats.TitlesFound.Add(1)
} }
stats.IconsFound.Add(int64(len(result.Icons))) stats.IconsFound.Add(int64(len(result.Icons)))
if !result.IframeAllowed { if result.Err == nil && !result.IframeAllowed {
stats.IframeBlocked.Add(1) stats.IframeBlocked.Add(1)
} }
if result.Err != nil { if result.Err != nil {