Skip to content

Commit

Permalink
don't send redundant context menu msg to chrome extension page
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit committed May 15, 2024
1 parent 79e18df commit 1d45461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background/listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ chrome.tabs.onUpdated.addListener(async (tabId, _, tab) => {
name: 'TabUpdated',
};

chrome.tabs.sendMessage(tabId, message);
if (!tab.url?.includes('chrome-extension://')) {
chrome.tabs.sendMessage(tabId, message);
}
}
});

Expand Down

0 comments on commit 1d45461

Please sign in to comment.