How To Use Tabs.executescript With React November 21, 2023 Post a Comment 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 souSolution 1: Use a path that is relative to your manfest.json file. MDN states: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'Copy Share Post a Comment for "How To Use Tabs.executescript With React"
Post a Comment for "How To Use Tabs.executescript With React"