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

Function broadcastStopToContentScripts

background.js:4261–4273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4259}
4260
4261async function broadcastStopToContentScripts() {
4262 const registry = await getTabRegistry();
4263 for (const entry of Object.values(registry)) {
4264 if (!entry?.tabId) continue;
4265 try {
4266 await chrome.tabs.sendMessage(entry.tabId, {
4267 type: 'STOP_FLOW',
4268 source: 'background',
4269 payload: {},
4270 });
4271 } catch { }
4272 }
4273}
4274
4275let stopRequested = false;
4276

Callers 2

requestStopFunction · 0.85
autoRunLoopFunction · 0.85

Calls 1

getTabRegistryFunction · 0.70

Tested by

no test coverage detected