diff options
Diffstat (limited to 'src/cdp/attach.ts')
| -rw-r--r-- | src/cdp/attach.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/cdp/attach.ts b/src/cdp/attach.ts deleted file mode 100644 index c1b101b..0000000 --- a/src/cdp/attach.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { map, type Result } from "../util/result"; -import type { CdpError } from "./errors"; -import type { CdpSession } from "./session"; - -export const attachTo = async ( - session: CdpSession, - targetId: string, -): Promise<Result<string, CdpError>> => - map( - await session.callBrowser("Target.attachToTarget", { targetId, flatten: true }), - (d) => d.sessionId, - ); |
