MCPcopy
hub / github.com/darkreader/darkreader / queryTabs

Function queryTabs

src/utils/tabs.ts:7–9  ·  view source on GitHub ↗
(query: chrome.tabs.QueryInfo = {})

Source from the content-addressed store, hash-verified

5
6// Promissified version of chrome.tabs.query
7export 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

Callers 4

cleanStateMethod · 0.90
updateContentScriptMethod · 0.90
sendMessageMethod · 0.90
getActiveTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected