prevent check for background pages

This commit is contained in:
contributor
2025-11-18 20:59:29 +02:00
parent c8258070c8
commit 09c17fc299
+2 -2
View File
@@ -330,8 +330,8 @@ browser.tabs.onActivated.addListener(async ({ tabId }) => {
});
// Listen for URL changes (navigation, page loads)
browser.tabs.onUpdated.addListener(async (tabId, changeInfo) => {
if (changeInfo.status === 'complete') {
browser.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => {
if (changeInfo.status === 'complete' && tab?.active) {
await checkAndUpdateTab(tabId);
}
});