MCPcopy Create free account
hub / github.com/deeppatel234/react-context-devtool / getCurrentTab

Function getCurrentTab

extension/core/background/utils.js:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39};
40
41export 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};

Callers 2

index.jsFile · 0.90
contextData.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected