()
| 4259 | } |
| 4260 | |
| 4261 | async 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 | |
| 4275 | let stopRequested = false; |
| 4276 |
no test coverage detected