onHashChange function ✓ 100.0%

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

Metrics

LOC: 11 Complexity: 3 Params: 0 Coverage: 100.0% (2/2 lines, 0x executed)

Signature

onHashChange(): : void

Source Code

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

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

Dependencies (Outgoing)

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

No incoming dependencies.