MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / isTabAlive

Function isTabAlive

background/tab-runtime.js:33–45  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

31 }
32
33 async function isTabAlive(source) {
34 const registry = await getTabRegistry();
35 const entry = registry[source];
36 if (!entry) return false;
37 try {
38 await chrome.tabs.get(entry.tabId);
39 return true;
40 } catch {
41 registry[source] = null;
42 await setState({ tabRegistry: registry });
43 return false;
44 }
45 }
46
47 async function getTabId(source) {
48 const registry = await getTabRegistry();

Callers 9

reuseOrCreateTabFunction · 0.70
sendToContentScriptFunction · 0.70
executeStep2Function · 0.50
executeStep8Function · 0.50
executeStep4Function · 0.50
runStep7AttemptFunction · 0.50
executeStep3Function · 0.50
executeCpaStep9Function · 0.50
executeSub2ApiStep9Function · 0.50

Calls 2

setStateFunction · 0.85
getTabRegistryFunction · 0.70

Tested by

no test coverage detected