* Inject the content script into a tab
(tabId)
| 77 | * Inject the content script into a tab |
| 78 | */ |
| 79 | function injectScript(tabId) { |
| 80 | return chrome.scripting.executeScript({ |
| 81 | target: {tabId}, |
| 82 | files: ['/scripts/content.js'], |
| 83 | }); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Get a script connection, and if there is no script associated with the tab, it injects it. |
no outgoing calls
no test coverage detected