From 6cf85ff01dfe330cbc6d0d06a1547ae874df682a Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sun, 28 Dec 2025 19:04:06 +0100 Subject: [PATCH] token variable --- playwriter/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwriter/src/utils.ts b/playwriter/src/utils.ts index 1027df9..6869ea2 100644 --- a/playwriter/src/utils.ts +++ b/playwriter/src/utils.ts @@ -3,9 +3,9 @@ import os from 'node:os' import path from 'node:path' import { fileURLToPath } from 'node:url' -export function getCdpUrl({ port = 19988, host = '127.0.0.1', query }: { port?: number; host?: string; query?: string } = {}) { +export function getCdpUrl({ port = 19988, host = '127.0.0.1', token }: { port?: number; host?: string; token?: string } = {}) { const id = `${Math.random().toString(36).substring(2, 15)}_${Date.now()}` - const queryString = query ? `?${query}` : '' + const queryString = token ? `?token=${token}` : '' return `ws://${host}:${port}/cdp/${id}${queryString}` }