[EXP] How to use chrome.tabs.onUpdated.addListener , chrome.tabs.onActivated.addListener #1115
Open
2 tasks done
Labels
documentation
Improvements or additions to documentation
What is the example you wish to see?
Hi guys i want to know how can i handle this with plasmo messaging system please help me .
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (stringStartsWithArrayValue(tab.url, urls)) {
if (changeInfo.url && !changeInfo.url.includes("#state")) {
chrome.tabs
.sendMessage(tabId, {
type: "CURRENT_URL",
url: changeInfo.url,
})
.catch((error) => console.error("Could not send message:", error));
}
}
});
im getting this error also
Is there any context that might help us understand?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: