Skip to content

Commit fedc899

Browse files
committed
Rename recordingEnabled to recording
1 parent 802b466 commit fedc899

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/playwright-cloudflare/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface LimitsResponse {
8686
*/
8787
export interface WorkersLaunchOptions {
8888
keep_alive?: number; // milliseconds to keep browser alive even if it has no activity (from 10_000ms to 600_000ms, default is 60_000)
89-
recordingEnabled?: boolean;
89+
recording?: boolean;
9090
}
9191

9292
// Extracts the keys whose values match a specified type `ValueType`

packages/playwright-cloudflare/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ export async function acquire(endpoint: BrowserEndpoint, options?: WorkersLaunch
150150
const searchParams = new URLSearchParams();
151151
if (options?.keep_alive)
152152
searchParams.set("keep_alive", options.keep_alive.toString());
153-
if (options?.recordingEnabled)
154-
searchParams.set("recordingEnabled", options.recordingEnabled.toString());
153+
if (options?.recording)
154+
searchParams.set("recording", options.recording.toString());
155155

156156
const acquireUrl = `${HTTP_FAKE_HOST}/v1/acquire?${searchParams.toString()}`;
157157
const res = await getBrowserBinding(endpoint).fetch(acquireUrl);

0 commit comments

Comments
 (0)