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

Function getContentScriptResponseTimeoutMs

background/tab-runtime.js:305–316  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

303 }
304
305 function getContentScriptResponseTimeoutMs(message) {
306 if (!message || typeof message !== 'object') return 30000;
307 if (message.type === 'EXECUTE_STEP' && Number(message.step) === 6) return 75000;
308 if (message.type === 'POLL_EMAIL') {
309 const maxAttempts = Math.max(1, Number(message.payload?.maxAttempts) || 1);
310 const intervalMs = Math.max(0, Number(message.payload?.intervalMs) || 0);
311 return Math.max(45000, maxAttempts * intervalMs + 25000);
312 }
313 if (message.type === 'FILL_CODE') return Number(message.step) === 7 ? 45000 : 30000;
314 if (message.type === 'PREPARE_SIGNUP_VERIFICATION') return 45000;
315 return 30000;
316 }
317
318 function getMessageDebugLabel(source, message, tabId = null) {
319 const parts = [source || 'unknown', message?.type || 'UNKNOWN'];

Callers 2

sendToContentScriptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected