Skip to content

Commit 1929eed

Browse files
Add contextID in state
Signed-off-by: Francis Bouvier <[email protected]>
1 parent ad8c9fa commit 1929eed

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/cdp/cdp.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub fn do(
8888
}
8989

9090
pub const State = struct {
91+
contextID: ?[]const u8 = null,
9192
frameID: []const u8 = FrameID,
9293
url: []const u8 = URLBase,
9394
securityOrigin: []const u8 = URLBase,

src/cdp/target.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ fn createBrowserContext(
178178
};
179179
const msg = try getMsg(alloc, Params, scanner);
180180

181+
ctx.state.contextID = ContextID;
182+
181183
// output
182184
const Resp = struct {
183185
browserContextId: []const u8 = ContextID,

0 commit comments

Comments
 (0)