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

Function pingContentScriptOnTab

background/tab-runtime.js:156–167  ·  view source on GitHub ↗
(tabId)

Source from the content-addressed store, hash-verified

154 }
155
156 async function pingContentScriptOnTab(tabId) {
157 if (!Number.isInteger(tabId)) return null;
158 try {
159 return await chrome.tabs.sendMessage(tabId, {
160 type: 'PING',
161 source: 'background',
162 payload: {},
163 });
164 } catch {
165 return null;
166 }
167 }
168
169 async function waitForTabUrlFamily(source, tabId, referenceUrl, options = {}) {
170 const { timeoutMs = 15000, retryDelayMs = 400 } = options;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected