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

Function registerTab

background/tab-runtime.js:26–31  ·  view source on GitHub ↗
(source, tabId)

Source from the content-addressed store, hash-verified

24 }
25
26 async function registerTab(source, tabId) {
27 const registry = await getTabRegistry();
28 registry[source] = { tabId, ready: true };
29 await setState({ tabRegistry: registry });
30 console.log(LOG_PREFIX, `Tab registered: ${source} -> ${tabId}`);
31 }
32
33 async function isTabAlive(source) {
34 const registry = await getTabRegistry();

Callers 2

handleMessageFunction · 0.70

Calls 2

setStateFunction · 0.85
getTabRegistryFunction · 0.70

Tested by

no test coverage detected