(message)
| 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']; |
no outgoing calls
no test coverage detected