Skip to content

Commit 1bcfe18

Browse files
author
Andy
committed
feat: The number of block request records will be recalculated after the tab is refreshed
1 parent ab9bd6d commit 1bcfe18

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/background/adguardEngine/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ class AdguardEngine implements IAdblockEngine {
267267
if (!tabsBlockCount.get(tabId) || tab.url !== tabsBlockCount.get(tabId).url) {
268268
tabsBlockCount.set(tabId, {url: tab.url, count: 0})
269269
}
270+
if(changeInfo.status && changeInfo.status == "loading"){
271+
tabsBlockCount.set(tabId, {url: tab.url, count: 0})
272+
}
270273
updateBadgeText(tabId)
271274
})
272275
chrome.tabs.onActivated.addListener((activeInfo) => {

0 commit comments

Comments
 (0)