Got many answers on how to inject content script through background script using executeScript(). But the problem I'm facing is My application page is waiting for 1 minute for extension to get installed, so in the meantime even if we install the extension, content script does not get loaded. Hence content script is not able to handle messages sent from background script in onInstalled event. If I reload the page explicitly and then perform the further action, then it detects the content script properly. Found many answers and tried injecting content script in background script, did not work in my case. Kindly suggest how can I proceed. Many thanks in advanced!
Asked
Active
Viewed 15 times