(query: chrome.tabs.QueryInfo = {})
| 5 | |
| 6 | // Promissified version of chrome.tabs.query |
| 7 | export async function queryTabs(query: chrome.tabs.QueryInfo = {}): Promise<chrome.tabs.Tab[]> { |
| 8 | return new Promise<chrome.tabs.Tab[]>((resolve) => chrome.tabs.query(query, resolve)); |
| 9 | } |
| 10 | |
| 11 | /** |
| 12 | * Attempts to find the current active tab |
no outgoing calls
no test coverage detected