onPopState function ✓ 87.5%

Last updated: 2026-03-05T11:49:57.418Z

Metrics

LOC: 10 Complexity: 3 Params: 0 Coverage: 87.5% (7/8 lines, 0x executed)

Signature

onPopState(): : void

Source Code

function onPopState(): void {
  if (!session || session.status !== "recording") return;

  addStep({
    type: "wait-for-url",
    timestamp: now(),
    url: window.location.href,
    label: "URL changed (popstate)",
  });
}

Dependencies (Outgoing)

graph LR onPopState["onPopState"] addStep["addStep"] now["now"] onPopState -->|calls| addStep onPopState -->|calls| now style onPopState fill:#dbeafe,stroke:#2563eb,stroke-width:2px click onPopState "607bb10e61baf55c.html" click addStep "012da91201f9487b.html" click now "b0f01bcc017e0081.html"
TargetType
addStep calls
now calls

No incoming dependencies.