Skip to content

Commit a1f11e4

Browse files
committed
fix: only do search when tab is complete status
1 parent 4583d7e commit a1f11e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/background/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Browser.tabs.onActivated.addListener((activeInfo) => {
5252
});
5353

5454
Browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
55-
if (tab.active) {
55+
if (tab.active && changeInfo.status === "complete") {
5656
const promise = new Promise(async () => {
5757
await badgeSearch(tab.url, tabId);
5858
});

0 commit comments

Comments
 (0)