Skip to content

Commit 4936b20

Browse files
committed
remove comments + redundant stuff
1 parent 6758f06 commit 4936b20

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

browserbase/src/sessionManager.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,17 @@ import {
44
Page,
55
} from "playwright-core";
66
import { Browserbase } from "@browserbasehq/sdk";
7-
import type { Config } from "./config.js"; // Import Config type
7+
import type { Config } from "./config.js";
88
import { SessionCreateParams } from "@browserbasehq/sdk/src/resources/sessions/sessions.js";
9-
// import { Writable } from "stream"; // Import Writable for process.stderr
109
import type { Cookie } from "playwright-core";
10+
1111
// Define the type for a session object
1212
export type BrowserSession = {
1313
browser: Browser;
1414
page: Page;
1515
sessionId: string;
1616
};
1717

18-
// Type for session creation options
19-
type SessionCreationOptions = {
20-
projectId: string;
21-
browserSettings?: {
22-
context?: {
23-
id: string;
24-
persist: boolean;
25-
};
26-
};
27-
// Add other potential Browserbase session options here if needed
28-
};
29-
3018
// Global state for managing browser sessions
3119
const browsers = new Map<string, BrowserSession>();
3220
// Keep track of the default session explicitly

0 commit comments

Comments
 (0)