mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Fcdp: fix attachtToTarget and attachToBrowserTarget resp
This commit is contained in:
@@ -247,10 +247,7 @@ fn attachToTarget(cmd: anytype) !void {
|
|||||||
|
|
||||||
try doAttachtoTarget(cmd, target_id);
|
try doAttachtoTarget(cmd, target_id);
|
||||||
|
|
||||||
return cmd.sendResult(
|
return cmd.sendResult(.{ .sessionId = bc.session_id }, .{});
|
||||||
.{ .sessionId = bc.session_id },
|
|
||||||
.{},
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn attachToBrowserTarget(cmd: anytype) !void {
|
fn attachToBrowserTarget(cmd: anytype) !void {
|
||||||
@@ -272,7 +269,7 @@ fn attachToBrowserTarget(cmd: anytype) !void {
|
|||||||
|
|
||||||
bc.session_id = session_id;
|
bc.session_id = session_id;
|
||||||
|
|
||||||
return cmd.sendResult(null, .{});
|
return cmd.sendResult(.{ .sessionId = bc.session_id }, .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn closeTarget(cmd: anytype) !void {
|
fn closeTarget(cmd: anytype) !void {
|
||||||
|
|||||||
Reference in New Issue
Block a user