mirror of
https://github.com/linkwarden/browser-extension.git
synced 2026-06-23 04:10:26 +00:00
prevent check for background pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user