The extension I am developing works in web pages, but when the webpage has an embedded iframe, the JS and CSS are not injected. I want the extension to run inside a Salesforce development window. I also notice it does not run inside a Codeine frame either.
I thought that using allFrames: true would fix this, however it makes no difference.
Guidance on this appreciated.
try {
await chrome.scripting.insertCSS({
target: { tabId:
tab.id, allFrames: true },
files: ["css/styles.css"],
});
} catch (err) {
console.error(`failed to insert roles CSS: ${err}`);
}
Thanks
Laurence