()
| 39 | }; |
| 40 | |
| 41 | export const getCurrentTab = async () => { |
| 42 | if (!chrome.tabs?.query) { |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | const queryOptions = { active: true }; |
| 47 | const tabs = await chrome.tabs.query(queryOptions); |
| 48 | |
| 49 | return tabs[0]; |
| 50 | }; |
no outgoing calls
no test coverage detected