remove Browser.EnvType

This commit is contained in:
Karl Seguin
2025-04-24 19:48:27 +08:00
parent 1fca035cfe
commit b0b3e92600
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,6 @@ pub const Browser = struct {
http_client: *http.Client, http_client: *http.Client,
session_pool: SessionPool, session_pool: SessionPool,
page_arena: std.heap.ArenaAllocator, page_arena: std.heap.ArenaAllocator,
pub const EnvType = Env;
const SessionPool = std.heap.MemoryPool(Session); const SessionPool = std.heap.MemoryPool(Session);

View File

@@ -21,6 +21,7 @@ const Allocator = std.mem.Allocator;
const json = std.json; const json = std.json;
const App = @import("../app.zig").App; const App = @import("../app.zig").App;
const Env = @import("../browser/env.zig").Env;
const asUint = @import("../str/parser.zig").asUint; const asUint = @import("../str/parser.zig").asUint;
const Browser = @import("../browser/browser.zig").Browser; const Browser = @import("../browser/browser.zig").Browser;
const Session = @import("../browser/browser.zig").Session; const Session = @import("../browser/browser.zig").Session;
@@ -308,7 +309,7 @@ pub fn BrowserContext(comptime CDP_T: type) type {
node_registry: Node.Registry, node_registry: Node.Registry,
node_search_list: Node.Search.List, node_search_list: Node.Search.List,
isolated_world: ?IsolatedWorld(Browser.EnvType), isolated_world: ?IsolatedWorld(Env),
const Self = @This(); const Self = @This();