openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 488 B
JavaScript
//#region extensions/browser/src/browser/cdp-fetch-interception.ts
/**
* Chromium rejects a per-request Fetch command with this error when the paused
* request already ended (the page cancelled it, or its frame went away). The
* lookup fails before any mutation, and the request can no longer load.
*/
function isRetiredFetchInterceptionError(e) {
return e instanceof Error && e.message.includes("Invalid InterceptionId");
}
//#endregion
export { isRetiredFetchInterceptionError as t };