Skip to content

Commit ab9bd6d

Browse files
author
Andy
committed
fix: Fix the problem that the number of requests intercepted by Baize is not counted in the statistics chart
1 parent ef59fc1 commit ab9bd6d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/background/heuristics.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Baize } from '../baize/baize'
99
import { getHost } from '../core/utils'
1010
import { UrlParse } from '../baize/lib/urlparse'
1111
import { tabsBlockCount, updateBadgeText } from '../background/adguardEngine'
12+
import * as statistics from '../background/statistics'
1213

1314
let heuristicsEnabled: boolean = false
1415

@@ -57,6 +58,7 @@ export async function initialize() {
5758
logger.info(`BAIZE Blocked: ${requestUrl}`)
5859
tabsBlockCount.get(details.tabId).count = tabsBlockCount.get(details.tabId).count + 1
5960
updateBadgeText(details.tabId)
61+
statistics.countEvent('adblock')
6062
return { cancel: true }
6163
}
6264
}

0 commit comments

Comments
 (0)