mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
Handle sessionId in result
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -33,10 +33,8 @@ fn enable(
|
||||
scanner: *std.json.Scanner,
|
||||
_: *Ctx,
|
||||
) ![]const u8 {
|
||||
return stringify(alloc, cdp.SessionIDResp{
|
||||
.id = id,
|
||||
.sessionId = try cdp.getSessionID(alloc, scanner),
|
||||
});
|
||||
const sessionID = try cdp.getSessionID(scanner);
|
||||
return result(alloc, id, null, null, sessionID);
|
||||
}
|
||||
|
||||
fn runIfWaitingForDebugger(
|
||||
@@ -45,5 +43,5 @@ fn runIfWaitingForDebugger(
|
||||
_: *std.json.Scanner,
|
||||
_: *Ctx,
|
||||
) ![]const u8 {
|
||||
return result(alloc, id, null, null);
|
||||
return result(alloc, id, null, null, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user