stopNetworkMonitoring function ✓ 100.0%

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

Metrics

LOC: 20 Complexity: 5 Params: 0 Coverage: 100.0% (4/4 lines, 0x executed)

Signature

stopNetworkMonitoring(): : void

Source Code

function stopNetworkMonitoring(): void {
  if (origFetch) {
    globalThis.fetch = origFetch;
    origFetch = null;
  }
  if (origXhrOpen) {
    XMLHttpRequest.prototype.open =
      origXhrOpen as typeof XMLHttpRequest.prototype.open;
    origXhrOpen = null;
  }
  if (origXhrSend) {
    XMLHttpRequest.prototype.send = origXhrSend;
    origXhrSend = null;
  }
  if (networkIdleTimer) {
    clearTimeout(networkIdleTimer);
    networkIdleTimer = null;
  }
  pendingNetworkRequests = 0;
}

No outgoing dependencies.

Impact (Incoming)

graph LR stopNetworkMonitoring["stopNetworkMonitoring"] stopRecording["stopRecording"] stopRecording -->|calls| stopNetworkMonitoring style stopNetworkMonitoring fill:#dbeafe,stroke:#2563eb,stroke-width:2px click stopNetworkMonitoring "7f6f09a7586cc683.html" click stopRecording "26762b7cb59107d8.html"
SourceType
stopRecording calls