How To Use Tabs.executeScript With React
In one of my components, when the component is loaded, I want my extension to inject a script into the current tab that the extension is run on. The script essentially gets the sou
Solution 1:
Use a path that is relative to your manfest.json file.
In Firefox, relative URLs are resolved relative to the current page URL. In Chrome, these URLs are resolved relative to the add-on's base URL.
From your manifest.json, it looks like your file
should be:
file: 'src/js/scripts/getPageSource.js'
Post a Comment for "How To Use Tabs.executeScript With React"