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

Function getStep8PageState

background.js:6021–6038  ·  view source on GitHub ↗
(tabId, responseTimeoutMs = 1500)

Source from the content-addressed store, hash-verified

6019}
6020
6021async function getStep8PageState(tabId, responseTimeoutMs = 1500) {
6022 try {
6023 const result = await sendTabMessageWithTimeout(tabId, 'signup-page', {
6024 type: 'STEP8_GET_STATE',
6025 source: 'background',
6026 payload: {},
6027 }, responseTimeoutMs);
6028 if (result?.error) {
6029 throw new Error(result.error);
6030 }
6031 return result;
6032 } catch (err) {
6033 if (isRetryableContentScriptTransportError(err)) {
6034 return null;
6035 }
6036 throw err;
6037 }
6038}
6039
6040async function waitForStep8Ready(tabId, timeoutMs = STEP8_READY_WAIT_TIMEOUT_MS) {
6041 const start = Date.now();

Callers 2

waitForStep8ReadyFunction · 0.85
waitForStep8ClickEffectFunction · 0.85

Tested by

no test coverage detected