diff options
Diffstat (limited to 'src/cdp/window.ts')
| -rw-r--r-- | src/cdp/window.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cdp/window.ts b/src/cdp/window.ts deleted file mode 100644 index b06f1ac..0000000 --- a/src/cdp/window.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { map, type Result } from "../util/result"; -import type { CdpError } from "./errors"; -import type { CdpSession } from "./session"; - -export const getWindowId = async ( - session: CdpSession, - targetId: string, -): Promise<Result<number, CdpError>> => - map(await session.callBrowser("Browser.getWindowForTarget", { targetId }), (d) => d.windowId); |
