Patricio Gonzalez
unread,May 15, 2023, 3:42:10 PM5/15/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Patrick Kettner, Chromium Extensions, Patricio Gonzalez
mm, yes, could it be, I have a lot of these errors/warnings in the chrome.tabs.sendMessage that i get rid of the chrome.runtime.lastError API,
like this:
chrome.tabs.query({}, (tabs) => {
tabs.forEach((tab) => {
chrome.tabs.sendMessage(tab.id, { type: REMOVE_SLIDEOUT }, () => {
return !chrome.runtime.lastError;
});
});
});
we have several like this, i don't get the errors, and it keeps working. For example, the prev example runs behind an onInstalled listener
chrome.runtime.onInstalled.addListener(installedHandler);
This code is on the service worker to the content script, if there is a problem of that kind, I think is there